var HV=(new Date()).getTime();var EJ=this;this.lpgenpwlist=new Array();if(typeof(Components)!="undefined"){this.lpis_mac="Darwin"==Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULRuntime).OS;this.lpis_win="WINNT"==Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULRuntime).OS;
if(null!=I5){var I2=I5.browsers;if(I2){I3++;break}}}}if(I3==0){for(var t in o){if(typeof(o[t])!="undefined"&&o[t]!=null){o[t].close();o[t]=null}}o=new Array()}var I7=I4.document.getElementById("appcontent");if(!I7){I7=window.document.getElementById("browser_content")}if(I7){I7.removeEventListener("DOMContentLoaded",LP.lponcontentloaded,false);
var t=null;if(z.prefHasUserValue("lastAppVersion")){t=z.getCharPref("lastAppVersion")}else{try{var z=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("general.useragent.");if(z){var I0=z.getCharPref("extra.firefox").match(/\/([0-9.]+)$/);
if(I0){t=I0[1]}}}catch(I1){}}return t};this.GotoURL=function(t){if(t!=0){var e=G9[t];if(e==null){return}Au(e.url)}};this.lpOpenEditWindow=function(I5,t,I7,Je,I8,Jf,I3){if(!DH){this.lpOpenLogin();return}if(I5!=0){for(var I9 in o){if(typeof(o[I9])!="undefined"&&o[I9]!=null){if(typeof(o[I9].aid)!="undefined"&&o[I9].aid==I5){o[I9].focus();
}else{if("password"==z.type&&z.value.length&&!e.length){e=z.value}else{if(("text"==z.type||"password"==z.type)&&z.value.length){Jd=true}}}}if(I1.length&&e.length&&Jd){break}}}if(I1.length&&!e.length){I1="";Jd=true}var I4=false;if(Jd){if(LP.lpConfirmYesNo(LP.lpgs("We've detected populated fields on this page. Would you like to save all fields on this page?"))){Je.openDialog(GY+"content/siteinfo.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen",0,0,0,"","",Je.getBrowser());
}else{return LP.mostRecent()}};this.lpCopyUsername=function(t){var e=y(G9[t],0);if(!LP.lpCopyStringToClipboard(e)){LP.lpalert_ex(LP.lpgs("ErrorCopyingToClipboard"))}};this.numsites=function(){return EU};this.lpCopyPassword=function(t){if(G9[t].sharedfromaid!=null&&G9[t].sharedfromaid!=""&&G9[t].sharedfromaid!="0"){LP.lpalert_ex(LP.lpgs("This is a shared site. You are not permitted to view the password."));
var Jp=I9.getElementById("eventdata3")?I9.getElementById("eventdata3").value:"";var Jo=I9.getElementById("eventdata4")?I9.getElementById("eventdata4").value:"";var Jn=I9.getElementById("eventdata5")?I9.getElementById("eventdata5").value:"";switch(Ji){case"login":var Jm=Js.toLowerCase().replace(/\s*/g,"");
var Jy=Jr;var Je=Jp;var Jv=Jo;var Jt=Jv=="webrootaso"?"":Jn;var Jl=Jv=="webrootaso"?Jn:"";if(Jm==""&&Jy==""&&Je==""){if(!DH){LP.lplogincheck("websitelogin")}else{}}else{if(Jm!=""&&Jy!=""){var I0=false;keybin=GS(Jy);keyhexold=A1(Hk?Hk:"");if(DH&&EV==Jm&&keyhexold==Jy){}else{if(DH&&EV==Jm){Ft(keybin);R()
}else{if(DH&&EV!=""){DS();I0=true}else{if(DH&&EV==""){HX("login invalid state A")}else{if(!DH&&EV!=""){}else{I0=true}}}}}if(I0){Ft(keybin);if(Jt!=""){Gx=Jt}if(Je!=""){if(Jv=="webrootaso"){if(Jl!=""){AR("login",{data0:Jm,data1:Jl})}var Jc=0;if(Jc){Ft("");ET=(new Date()).getTime();LP.mostRecent().setTimeout(function(){AR("logincheck")
var I7=I9.getElementById("eventdata2");if(I8&&I8.value=="settings"){var Jb=(I7&&I7.value=="2")?"websiterefreshrsa":"websiterefresh";Dd(Jb)}else{LP.lpGetAccounts()}}break;case"rsaencrypt":Z(Ji,I9);break;case"rsadecrypt":EM(Ji,I9);break;case"keyweb2plug":var Jx=Js;var Jm=Jr.toLowerCase().replace(/\s*/g,"");
var Jd=z.file;Jf=Jf.replace(new RegExp("^/~[^/]*"),"");if(Jf!=""&&Jf!="/"&&Jf!="/sso/"){break}if(Jd!="import.php"){break}I9.getElementById("source").value=GM;I9.getElementById("t").value=GG(Dl._utf8_encode(HN));I9.getElementById("b64").value="1";I9.getElementById("utf8").value="1";I9.getElementById("encryptandstore").click();
var I1="";if(Js=="trueapi"){var Jq=CB(CB(F4(Jr)+Js));if(Jq.length!=64){if(Fl()&&typeof(BA.trueapi_get_hash)=="function"){Jq=BA.trueapi_get_hash(Jr)}}I1=Jq!=""?CB(Jq+Jo):""}if(I1==""){I9.getElementById("eventdata3").value="error"}else{I9.getElementById("eventdata5").value=I1;I9.getElementById("eventdata3").value="done"
}}if(!EN[I0]){var I8=true;var t=new Array();if(Dn(I0,null,null,I8,t)){Ar(I0.contentDocument,t.aid);F7(I0.contentDocument,LP.lpgs("Waiting for the website to finish loading..."));EN[I0]=true}else{if(typeof(Ht)!="function"||F0==I0){E8(I4,false,true)}}}if(I5){EP();if(I4&&I4.documentElement){I4.documentElement.addEventListener("DOMNodeInserted",HJ,false)
if(I5!=null&&e>(I5.timeSaved+60*5)){G7[Jc]=null}}var I8=new Array();for(var Jc in G7){if(G7[Jc]){I8.push(G7[Jc])}}G7=I8;for(var Jc in Bz){var I5=Bz[Jc];if(I5!=null&&e>I5.timeSaved+(60*5)){Bz[Jc]=null}}var Ja=new Array();for(var Jc in Bz){if(Bz[Jc]){Ja.push(Bz[Jc])}}Bz=Ja}for(var Jc in Bz){if(typeof(z)!="undefined"&&Jc!=z){continue
var JL=G9[JB].logins[JA].uname;var JI=G9[JB].logins[JA].pname;var I6=Br(JQ,Jo,G9[JB].logins[JA].tld,Js,Jt,JY,JI,JL);var JC=ED(G9[JB].logins[JA].url,Ji);if(I6&&Ev(I6,G9[JB].logins[JA],null,false)){Kb=false;I3=JC;JZ=true;break}Kb=true;if(Jj!=JC){Jb++;I3=Jj=ED(G9[JB].logins[JA].url,Ji)}if(Ji.host==JK.host&&Jn!=JC){Kc++;
var z=typeof(Fv[Jj])!="undefined"?Fv[Jj]:new Array();for(var Ji in z){if(typeof(G9[Ji])=="undefined"||G9[Ji].genpw||G9[Ji].isbookmark){continue}if(G9[Ji].password!=""){var Jg=new Gm();Jg.realmmatch=false;Jg.id=G9[Ji].id;var Jb=IR(G9[Ji].url);Jg.urlmatch=ED(G9[Ji].url,Jb)==Ja?true:false;Jg.servermatch=Jb.host==I7.host?true:false;
}if(typeof(JU)=="undefined"||JU==null){JU=Ki.contentWindow}var Jp=LP.lpgetcurrenturl(Ki);if(typeof(Jk.location)=="undefined"||Jk.location==null){return false}var Jq=Jk.location.href;var Kg=Ab();if(!JS){JS=new Array()}if(!Kj){Kj=new Array()}var J8=false;var JM=false;var t=false;for(var I2=0;I2<2;I2++){if(!JM){for(var JA in A7){var Jl=JA;
var J4=A7[JA];var J7=G9[J4.aid];var J1=J7&&J7.sharedfromaid!=null&&J7.sharedfromaid!=""&&J7.sharedfromaid!="0";var Kr=false;if(I2==0){if(typeof(Ki.loginAid)!="undefined"&&Ki.loginAid==J4.aid){Kr=true;Jw=false}else{continue}}if(!LP.compare_tlds(AN(J4.url),AN(Jq))){continue}if(Kc){Kc.aid=J4.aid}if(Jv!=true&&Kg-J4.create_time>=45){JS[JS.length]=Jl;
Kp=true}}}if(Kp){E7(JY[Jz])}}else{if(JY[Jz].type!="hidden"&&JY[Jz].type!="reset"&&JY[Jz].type!="button"&&JY[Jz].type!="image"&&JY[Jz].type!="submit"&&JY[Jz].type!="file"&&JY[Jz].type!="textarea"){Jn(JY[Jz],J4.fields[E0(JY[Jz])])}}}}}}}}var Ko=false;var J6=false;var JJ=false;var JK=false;for(var JR in J4.otherfields){var JE=new Array();
var Jy=E0(J0);if(typeof(J4.otherfields[JR][Jy])=="undefined"){var I4=E0(J0,true);if(typeof(J4.otherfields[JR][I4])!="undefined"){Jy=I4}}if((Jy==""||typeof(J4.otherfields[JR][Jy])=="undefined")&&typeof(Km.elementnames)!="undefined"&&Km.elementnames.length>Jx){Jy=Km.elementnames[Jx]}if(J0.type=="text"||J0.type=="password"){Ko=true;
var Ka=Je.createTextNode(J5);I8.appendChild(Ka);Je.body.appendChild(I8)}}catch(JF){HX("Error running custom JS 3: "+JF+" ln: "+JF.lineNumber,Jq)}}var Jc=J4.custom_js.indexOf("lpdontsubmit")==-1&&!t;if(Jw&&F2(J4.aid)){Jw=false}if(!Jw){Jk.LPlpskipaddconfirm=true}if(JH!=null){Az(Jk);Cz("EnterCaptcha",Ki,0,"captcha");
FM(JH);JH.focus();Ki.lpformtosubmit1=Ki.lpformtosubmit2=null}else{if(Jc){if(typeof(Ki.loginAid)!="undefined"){Ki.loginAid=""}if(!Jw){J4.overlay_shown=true;Ar(Jk,J4.aid)}var Jb=0;if(!Jb&&!Jw){EY(Kh,I1,J4.submit_id)}}}F7(Jk,LP.lpgs("Submitted the form, waiting for the remote website..."));JS[JS.length]=Jl;
if(Ki.lpformtosubmit1){Ji=Ki.lpformtosubmit1}else{if(Ki.lpformtosubmit2){Ji=Ki.lpformtosubmit2}}if(Ji){J4.overlay_shown=true;Ar(Jk,J4.aid);var Kh=Ji.ownerDocument;EY(Kh,Ji,J4.submit_id);F7(Jk,LP.lpgs("Submitted the form, waiting for the remote website..."))}}Ki.lpformtosubmit1=null;Ki.lpformtosubmit2=null
Jd<Jg.fields.length;Jd++){if(I2){if(Jg.fields[Jd].type=="text"){I8++}if(Jg.fields[Jd].type=="password"){e++}}if(Jg.fields[Jd].type=="text"||Jg.fields[Jd].type=="password"||Jg.fields[Jd].type=="select-one"){t[Jg.fields[Jd].name]=Jg.fields[Jd].value;I9[Jg.fields[Jd].name]=Jg.fields[Jd].type}}}else{for(var Jd in Jg.fields){if(typeof(Jg.fields[Jd])!="undefined"){t[Jd]=Jg.fields[Jd];
}if(I3[Jd].type=="password"){Jf++}}if(I3[Jd].type=="text"||I3[Jd].type=="password"||I3[Jd].type=="select-one"){if(typeof(t[E0(I3[Jd])])!="undefined"){Jh=true;t[E0(I3[Jd])]=null}else{if(E0(I3[Jd])!=""){var Je=I3[Jd].type=="hidden"||!GT(I3[Jd]);I5+="\nForm field not in RawForm : "+E0(I3[Jd])+(Je?" (IGNORING DIFFERENCE SINCE HIDDEN)":"");
if(Je||I3[Jd].type=="select-one"){continue}I7=true}}}}for(var Jd in t){Jh=true;if(t[Jd]!=null&&Jd!=""){I5+="\nRawForm field not in Form : "+Jd;if(I9[Jd]=="select-one"){continue}I0=true}}if(I2){I2.value=(I6==I8&&Jf==e&&(I7||I0))}if(!I1||!Jh){Jb=false}else{if(Ja){if(I7&&I0){Jb=false}}else{if(I7||I0){Jb=false
var I4=HQ(I8.ownerDocument);if(I4==null){return}var Jb=I4.contentWindow;while(Jb.top!=null&&Jb.top!=Jb){Jb=Jb.top}var I5=Jb.document;if(typeof(I5)=="undefined"||typeof(I5.forms)=="undefined"){return}if(typeof(I5.LPlpshowednote)!="undefined"&&I5.LPlpshowednote>1){return}var Ja=I5.forms.length;if(Ja>100){Ja=100
AO(Jy);return}}if(typeof(t.name)!="undefined"&&t.name=="lpmanualform"){if(!DH){HX("lpmanualform submission, but not logged in",null)}var Jd="";var I2=t.ownerDocument&&HQ(t.ownerDocument)?HQ(t.ownerDocument):null;var Jk=false;for(var Jt=0;Jt<t.elements.length;Jt++){if(t.elements[Jt].name=="aid"){Jd=t.elements[Jt].value
if(z.password==2&&Jc==null){BB(I2,t,Ja);Fs(Jj,false,false,I2,t,0,1)}else{if(Jc!=null){if(Jc!=null){var Jx=new Array();var Jp=0;for(var Ji in Jc){Jx.username=Jc[Ji];Jx.password=Jn;Jx.id=Ji;Jp++}}BB(I2,t,Ja);Fs(Jj,false,false,I2,t,0,1,false,true,false,null,null,1,null,Ja);Jx.key=Ja;Jx.tld=I7;if(Jp==1){Ht=function(){Cz(LP.lpgs("PasswordChange")+" "+Jx.username,I2,Jx.id,"change",Jx)
var t=z.QueryInterface(Components.interfaces.nsIHttpAuthManager);t.clearAll()}catch(I1){}LP.lpMakeRequest(LP.lp_base+"logout.php?ff_plugin=1","",I0==null||I0==true?Ip:null);EV="";Ai="";Ae="";BX=0;Eu="";GK();LP.lphelpstats=null;Eo=0;BM=false;Gx="";LP.lpGetCurrentWindow().setTimeout('LP.lp_remove_cookie(".'+LP.lp_basehost+'", "PHPSESSID");',30);
LP.lpDisplayAccounts_all(true)}function Ip(e){if(e&&e.readyState==4){Ir()}}this.lplogoff_win=function(){for(var e in o){o[e].close()}o=new Array();DH=false;h=false;if(!LP.lpprefsHasUserValue("ffhasloggedinsuccessfully",false)){LP.lpprefsSetBoolPref("ffhasloggedinsuccessfully",true,false);LP.flush_prefs()
var I1=t.getEnumerator("");while(I1.hasMoreElements()){var I0=I1.getNext();try{if(I0.document&&I0.document.getElementById("lpt_lppremium")){I0.document.getElementById("lpt_lppremium").hidden=LP.lpisp()?true:false;LP.sr(I0.document,"lpt_lppremium","label","Go Premium!")}}catch(z){HX("Drew was right, lpt_lppremium is still null.",null)
LP.sr(t,"lpt_lpclearcache3","label","Clear Local Cache")}if("off"==z){if(t.getElementById("lpt_lplogintolastpass")&&!Bq){t.getElementById("lpt_lplogintolastpass").hidden=false}if(t.getElementById("lpt_lastpass-fav")){t.getElementById("lpt_lastpass-fav").disabled=true}if(t.getElementById("lpt_status-bar-fav")){t.getElementById("lpt_status-bar-fav").setAttribute("disabled",true)
var t={id:1,name:1,length:1,action:1,method:1};var z={id:1,name:1,type:1,value:1,checked:1,disabled:1};for(I1 in t){I2[I1]=typeof(I3[I1])=="undefined"?null:I3[I1]}I2.elements=[];for(I1=0;I1<I3.elements.length;++I1){var I4={};for(I0 in z){I4[I0]=AH(I0,I3.elements[I1])}I2.elements.push(I4)}return I2}function Hu(I1){var I0="";
var z,t,e;for(z in I1){if(z!="elements"){I0+="\nFORM: "+z+" -> "+I1[z]}else{for(t in I1[z]){for(e in I1[z][t]){I0+="\nELEMENT #"+t+" : "+e+" -> "+I1[z][t][e]}}}}}function f(e,I2,I1){var I0,z,t;for(var I0 in e){if(I0!="elements"){if(typeof(I2[I0])=="undefined"||e[I0]!=I2[I0]){return false}}}for(I0 in e.elements){if(typeof(I2.elements[I0])=="undefined"){return false
}for(z in e.elements[I0]){if(typeof(I2.elements[I0][z])=="undefined"||e.elements[I0][z]!=I2.elements[I0][z]){return false}}}if(I1){return true}return f(I2,e,true)}function Fs(Ju,JX,Jc,J7,Jd,Jt,Jy,Kf,JH,z,Jn,JQ,JV,J5,Kd){var Kc=false;if(JX){z=Kc=true}var JU=null;if(typeof(JV)=="undefined"){JV=1}if(JV>10){return""
var JP=E0(I1);var I0=false;for(var Jz=0;Jz<J4.length;Jz++){if(E0(J4[Jz].form)==JZ&&E0(J4[Jz])==JP&&J4[Jz].type==I1.type&&J4[Jz].value!=""){I0=true;break}}if(I0){continue}}var JP;if(z&&JZ==""){JP=E0(I1,true)}else{JP=E0(I1)}if((JP==""||(typeof(I8[JP])!="undefined"&&typeof(J2[JP])!="undefined"))&&z){if(JE==Je+1){JP=Jm[JF]
var I6="";for(var JA=0;JA<I1.options.length;JA++){if(I1.options[JA].selected){Kh+=I6+LP.en(I1.options[JA].value);I6="|"}}}else{if(I1.selectedIndex<0||I1.selectedIndex>=I1.options.length||typeof(I1.options[I1.selectedIndex])=="undefined"){Kh=""}else{Kh=I1.options[I1.selectedIndex].value}}for(var JA=0;
var I3=IR(Ja.url);e.logins[I6].server=I3.host;e.logins[I6].tld=I1;var I2=ED(Ja.url,I3);B4[B4.length]=I2}e.logins[I6].username=Ja.username;e.logins[I6].unencryptedUsername=Ja.unencryptedUsername;e.logins[I6].password=Ja.password;for(var I5=0;I5<e.logins[I6].fields;I5++){if(Ja.oldusername!=""&&e.logins[I6].fields[I5].value==Ja.oldusername){e.logins[I6].fields[I5].value=Ja.username
var I8="data:image/gif;base64,R0lGODlhEAAQAPfBAFdCGCpgtyxity1kuS5kuS5luS9lujBlujBmujFmuzFnuzNpvIdhK4JmLjZvvzhxvzt2wTt2xKZoJjx4wT98xUB8xEKAxUKAxkWCxUWCxkeExkmFxEmIxkqIxkuIxWCFrUuJxUuJxkyJxr56Gk2LyE+Lx0+MyE+MyU+NyKqJQ8mFQWWU27yJTMKMSMeMSMWYSWWo0siZZLOfcNqYSduZS9CdRk+y99iaVFGy99mbUVW0+NOfZuChUdejY32y4tilWGG8+2K8/GK9/GO9+2C+/Ge9/GS+/GW++2i//W7C/duxhb+2ptW2etG3kNa5dprJ4+e+d+fAi8zGsMzGs+TJVcLLtpPU/8nNr5TV/+3KbefLd5XW//nHlPnJke3QeM3S2tDUvrjW9O7TebrW9fDTecjV4u7UffHUe9XWve7Vgc3W4fLWeu/SrPDStMHb+PbTrvXcXvXcX8Lc+MTd+fXfW/bdbPffY8Xf+ffhWsfg+sjg+ffiW8jg+8ng+/jiXcjh+8nh+8rh+sni+8vi+83j+83j/Onf0s7j+8/j/M/k/NDk+9Hk/PHjr9Xl/tPm/Nfm8tTm/NTm/fzgxPnjstPn/dXn/dbn/dbn/tfn/tbo/tfo/tjo/tzq9t7q9t7r9t/r9d/s9+Pt9+bw9+jx+Orx+Ory+uvy+Ozy9+zy+Ovz+uzz+e3z+O30+O30+e70+O/0+f/y4PD0+f32wv32xPH1+f/z5f33x/L2+vL3+/P3/PT3+/T4/PX5/Pf6/fj7/fj7//3+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH5BAEKAP8ALAAAAAAQABAAAAj+AP/9I2GioAkUJ0qAiCCw4YZTrlitmojq1CMfKxr+83ArDyBBfO64CfOryg8lNQSKoFXoEKFBeuSMYQSlTS02Lv6FoIVIUaJCgeZcSTMpyhtJO3TGcgSJ0iJCYMzMqpOlRwyBHV5hslQpEhoxtuLsWcPjg0AOrTZt0iRFiy04eM7QMJRBoAZVmTRNcSLLjh8yM8qUuiAQg6lLS5g0oULHSw41gHBREGhhVKMUsG6MeNHiS58/vSAIrCBKRwMuXVRIgIHDhg1eDgROCJUEAAMWMp5swWLliC4FAh98QlLkiBEjQoYAIRLE1wCBC0iB8tSJE6dUqUrl2gUsQMMDCRAMiD9goEABAgQECAwIADs=";
var Jn=null;if(I0=="accountadded"){var I4=new Iu();I4.pendingshare=false;I4.url=Jm.url;var Jo=AN(I4.url);I4.tld=Jo;I4.name=Jm.name;I4.urid=z;I4.id=I1;I4.manual="0";I4.is_http="0";I4.extra=Jm.extra;I4.fav=Jm.fav;I4.favico="0";I4.autologin=Jm.autologin;I4.basic_auth=Jm.basic_auth;I4.group=Jm.group!=""?Jm.group:LP.get_null_group();
var Jp=false;for(var Ji=0;Ji<Jm.logins[0].fields.length;Ji++){var I9=Jm.logins[0].fields[Ji];if(I9.type=="text"&&I9.name!="openid_url"){if(Jb.username!=""&&I9.value==Jb.username){Jb.uname=I9.name;I5=true}else{if(!I5&&(Jb.pname==""||Jb.uname=="")){Jb.uname=I9.name}}}if(I9.type=="password"){if(Jb.password!=""&&I9.value==Jb.password){Jb.pname=I9.name;
var I3=I8.getEnumerator("");while(I3.hasMoreElements()){var I1=I3.getNext();if(typeof(I1.getBrowser)=="function"){var I6=I1.getBrowser();if(null!=I6){var I4=I6.browsers;for(var I0=0;I4&&I0<I4.length;I0++){if(typeof(I4[I0])!="undefined"&&As(I4[I0].currentURI.spec,null,I4[I0].currentURI.asciiHost)&&I4[I0].currentURI.spec.indexOf("lpnorefresh=1")==-1){var z=Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY|Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY|Components.interfaces.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;
var I7=I4[I0].webNavigation.sessionHistory.getEntryAtIndex(I4[I0].webNavigation.sessionHistory.index,false);var I5=I7.QueryInterface(Components.interfaces.nsISHEntry).referrerURI;try{I4[I0].webNavigation.loadURI(I4[I0].webNavigation.currentURI.spec,z,I5,null,null)}catch(I2){HX("Error in lprefreshwindows:"+I2+" ln: "+I2.lineNumber,null)
var t;if(typeof(LP.getBrowser().getNotificationBox)=="function"){t=LP.getBrowser().getNotificationBox(I7).currentNotification}if(t){if(typeof(t.choices)!="undefined"&&t.choices=="addconfirm"&&typeof(t.extra)!="undefined"&&typeof(t.extra.key)!="undefined"){var Jb=t.extra.key;if(Jb==Jc){I8=true}}}if(!I8){var Ja=I7.contentDocument;
}}if(z&&I7){return true}}}}}}return false}function Iq(I3,I2,t){var e=Ab();var I0=new Array();for(var z in H9){var I1=H9[z];if(e>(I1.rejectedTime+60*10)){I0[I0.length]=z}}for(var z=I0.length-1;z>=0;z--){H9.splice(I0[z],1)}for(var z in H9){var I1=H9[z];if(I1.username==I3&&I1.encryptedPassword==I2&&LP.compare_tlds(I1.tld,t)){return false
LP.sr(I0,"lpt_lpothersessions","label","Other Sessions");LP.sr(I0,"lpt_lpclearcache1","label","Clear Local Cache");LP.sr(I0,"lpt_lpclearcache2","label","Clear Local Cache");LP.sr(I0,"lpt_lpsaveall","label","Save All Entered Data");LP.sr(I0,"lpt_lpedit","label","Edit");LP.sr(I0,"lpt_lpdelete","label","Delete");
LP.sr(I0,"lpt_lpgotourl","label","Go to URL");LP.sr(I0,"lpt_lpcopyun","label","Copy Username");LP.sr(I0,"lpt_lpcopypw","label","Copy Password");LP.sr(I0,"lpt_lastpass-toolbar","toolbarname","LastPassToolbar");LP.sr(I0,"lpt_lastpass-login","label","Login");LP.sr(I0,"lpt_lastpass-com","label","My LastPass Vault");
LP.sr(I0,"lpt_uploadall-btn","label","Upload All Forms");LP.sr(I0,"lpt_debug-btn","label","EnableDebug");LP.sr(I0,"lpt_adminpage-btn","label","Admin Page");LP.sr(I0,"lpt_testxpcom-btn","label","Test XPCOM");LP.sr(I0,"lpt_lpcontentareacontextmenu","label","LastPass");LP.sr(I0,"lpt_lpcontextgenpw","label","Generate Secure Password");
LP.sr(I0,"lpt_lpcontextrecheck","label","Recheck Page");LP.sr(I0,"lpt_lpcopyusernamemenu","label","Copy Username");LP.sr(I0,"lpt_lpcopypasswordmenu","label","Copy Password");LP.sr(I0,"lpt_lpautofillmenu","label","AutoFill");LP.sr(I0,"lpt_lpfillformsmenu4","label","LastPass Fill Forms");LP.sr(I0,"lpt_lplogintolastpass","label","Login to LastPass")
var I2=I0.getEnumerator("");if(I3==null){I3=true}var e=DM(z,I3,t);if(e&&z&&z.readyState==4&&(z.status==200||I3)){if(!I1){LP.lpRecheckTabs(Ez)}Ez=false}LP.ShowPremiumMenuItem()};function C5(){if(d.length==0){if(LP.lpConfirmYesNo(LP.lpgs("EnterFormFillData"))){}}else{FT(LP.getBrowser(),LP.getBrowser().contentDocument,true)
var t=I5.getElementById("lpsearchpanel");var I6=I5.getElementById("lpt_find-acct");if(!I9&&I7.keyCode==I7.DOM_VK_ESCAPE){I6.value=""}if(!I9&&I7.keyCode==I7.DOM_VK_TAB){return}if(!t){t=I5.createElement("panel");t.id="lpsearchpanel";t.setAttribute("noautofocus",true);t.setAttribute("norestorefocus",true);
z[z.length]=LP.lpgs("TTChange");if(typeof(Bz[I0.key])!="undefined"&&Bz[I0.key]!=null){Jm.push({label:LP.lpgs("Save New Site"),accessKey:null,popup:null,callback:Fq});z[z.length]=LP.lpgs("TTAdd")}}else{if(Jf=="captcha"||Jf=="offline"){if(!Jl&&Jf=="captcha"){return}}else{if(Jf=="addconfirm"){Jm.push({label:LP.lpgs("SaveSite"),accessKey:null,popup:null,callback:Fq});
z[z.length]=LP.lpgs("TTAdd");var Js=Ay(0,Jr,I0);Jm.push({label:LP.lpgs("Never For This ..."),accessKey:null,popup:Js,callback:null});z[z.length]=LP.lpgs("TTNever");Jm.push({label:LP.lpgs("NotThisLogin"),accessKey:null,popup:null,callback:Gw});z[z.length]=LP.lpgs("TTNotThisLogin")}else{if(Jf=="addformfill"){Jm.push({label:LP.lpgs("AddProfile"),accessKey:null,popup:null,callback:D9});
z[z.length]=LP.lpgs("TTFillCurrent")}Jm.push({label:LP.lpgs("Generate"),accessKey:null,popup:null,callback:DN});z[z.length]=LP.lpgs("TTGenerate");var Js=Ay(1,Jr,I0);Jm.push({label:LP.lpgs("Never For This ..."),accessKey:null,popup:Js,callback:null});z[z.length]=LP.lpgs("TTNeverForThisSite")}else{if(Jf=="error"){if(I0.feedback){Jm.push({label:LP.lpgs("Feedback"),accessKey:null,popup:null,callback:Gc});
var I7,t,I1;I7=LP.lpgs("FillForm")+" ("+d.length+")";if(A&&C9()){t=null;I1=LP.choose_profile_and_credit_card}else{t=IW(null,Jr);I1=null}Jm.push({label:I7,accessKey:null,popup:t,callback:I1});z[z.length]=LP.lpgs("TTFillForm");var Js=Ay(2,Jr,I0);Jm.push({label:LP.lpgs("Never For This ..."),accessKey:null,popup:Js,callback:null});
t.appendChild(I8)}var I8=I4.createElement("menuitem");I8.setAttribute("label",LP.lpgs("NeverForThisSite"));I8.setAttribute("oncommand","LP.never_helper("+I3+", false, '"+Hb(I5)+"', '"+Hb(I1)+"', '"+Hb(I6)+"');");t.appendChild(I8);var I2=I4.createElement("menuitem");I2.setAttribute("label",LP.lpgs("Never For This Domain"));
}}Jd.appendChild(Je);if(!e){var z=Jf.createElement("menuitem");z.setAttribute("label",LP.lpgs("Edit")+" "+I4);z.setAttribute("oncommand","LP.lpOpenEditWindow('"+I3[Ja].id+"'); if (LP.getBrowser().getNotificationBox().currentNotification)LP.getBrowser().getNotificationBox().removeCurrentNotification();");
var z=Jf.createElement("menuitem");z.setAttribute("label",LP.lpgs("Report Broken"));z.setAttribute("oncommand","LP.lp_openFeedbackBroken(); if (LP.getBrowser().getNotificationBox().currentNotification)LP.getBrowser().getNotificationBox().removeCurrentNotification();");Jb.appendChild(z)}return I8}function IW(I2,I4){var I5=I4.getElementById("mainPopupSet");
var t=I4.createElement("popup");var e=H("popup");t.setAttribute("id",e);I5.appendChild(t);var I3=false;var z=false;for(var I1=0;I1<d.length;I1++){var I0=d[I1];if(I0.profiletype==0){I3=true}if(I0.ccnum!=""){z=true}var I6=I4.createElement("menuitem");I6.setAttribute("label",I0.profilename);if(I2){I6.setAttribute("oncommand","LP.lp_generatePasswordAndFillFormsHelper("+I0.ffid+");")
var I0="url="+LP.en(D3(t))+"&password="+LP.en(Ds(z))+"&name="+LP.en(AS(e));I0+=LP.GetIdentityParam();if(!I1){I0+="&nofill=1"}LP.lpMakeRequest(LP.lp_base+"save_gen_pw.php",I0,Bh);if(!LP.lpprefsHasUserValue("SaveGenAlert")){LP.alert(LP.lpgs("SaveGenAlert"));LP.lpprefsSetBoolPref("SaveGenAlert",true,true)
}if(I9){Q()}else{LP.lpGetAccounts()}}else{LP.lpGetAccounts()}Ir()}}else{var I4="Problem with save gen pw response. status="+t.status+" text= "+t.responseText;HX(I4,null);j("ErrorSaveGenPwMsg")}}}function C6(z,e,t){B5(LP.lpgetcurrenturl(z.browser),t)}function Dz(z,e,t){E2(LP.lpgetcurrenturl(z.browser),t)
var t=I2.getAttribute("id");if(G9[t]&&!G9[t].genpw){I5[I5.length]=G9[t];z|=G9[t].pwprotect}I6++}if(I5.length>5){if(!LP.lpConfirmYesNo(LP.lpgs("Are you sure you would like to launch all sites?"))){return}}if(DI||z){if(!LP.securityPrompt()){return}}Cu=true;for(var I1=0;I1<I5.length;I1++){LP.lpLaunchUrl(I5[I1].id,I5[I1].manual,I5[I1].is_http,null,null,null,null,true)
}if(I1.indexOf("this.docShell is null")!=-1||I1.indexOf("this._closedNotification.parentNode is null")!=-1||I1.indexOf("browsers[i] is undefined")!=-1){return}LP.lpMakeRequest(LP.lp_base+"error.php",I0,null)}this.lpToggleDebug=function(){F5=!F5;var e=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();AG(t.document)}};function AG(e){if(e.getElementById("debug-btn")){e.getElementById("debug-btn").label=LP.lpgs(F5?"DisableDebug":"EnableDebug");e.getElementById("debug-btn").setAttribute("checked",F5?"true":"false")}}this.lpOpenPrefs=function(t,e){LP.lpGetCurrentWindow().openDialog(GY+"content/prefs.xul","_blank","chrome,modal,resizable,centerscreen",t,e)
var I9=I1.getElementsByTagName("ok");if(I9.length>0){var Ja=parseInt(I9[0].getAttribute("localupdate"));var I5=parseInt(I9[0].getAttribute("accts_version"));if(Ja&&I5==BP+1){var z=I9[0].getAttribute("newpassword");var t=new Array();var I6="";while(I9[0].hasAttribute("oldpassword"+I6)){var e=parseInt(I9[0].getAttribute("id"+I6));
var I4=I9[0].getAttribute("oldpassword"+I6);var I7=G9[e];if(I7.password==I4){I7.password=z}if(I7.logins){for(var I3=0;I3<I7.logins.length;I3++){if(I7.logins[I3].password==I4){I7.logins[I3].password=z}for(var I2=0;I2<I7.logins[I3].fields.length;I2++){if(I7.logins[I3].fields[I2].type=="password"&&I7.logins[I3].fields[I2].value==I4){I7.logins[I3].fields[I2].value=z
var z=e.getEnumerator("");while(z.hasMoreElements()){var t=z.getNext();LP.lpRebuildToolsMenu(t.document,t)}};this.lpRebuildToolsMenu=function(I0,Jl){if(typeof(Jl.getBrowser)!="function"){return}var Jy=Jl.getBrowser();if(null==Jy&&!LP.isFennec){return}if(!LP.isFennec&&(typeof(Jy.selectedTab)=="undefined"||Jy.selectedTab==null)){return
var e=false;if(I0.getElementById("lpt_lastpass-compact-menu")){I9[I9.length]=I0.getElementById("lpt_lastpass-compact-menu");e=true}if(I0.getElementById("lpt_lastpass-fennec-menu")){I9[I9.length]=I0.getElementById("lpt_lastpass-fennec-menu")}if(I0.getElementById("lpt_lp-tools-menu")){I9[I9.length]=I0.getElementById("lpt_lp-tools-menu")
Jd.setAttribute("class","menuitem-iconic");Jd.setAttribute("src","chrome://lastpass/skin/exclamation.png")}else{Jd.setAttribute("label",LP.lpgs("Check For Updates"))}}}};function Fl(){if(!EA){EA=true;try{var e=Components.classes["@lastpass.com/XPCOM/LastPass;1"];if(e){BA=e.createInstance().QueryInterface(Components.interfaces.iLastPass)
}return null}function Ds(t,e){if(typeof(e)=="undefined"){if(typeof(Hk)!="string"||0==Hk.length||null==t||0==t.length){if(null!=t&&0!=t.length&&DH){HX("We're trying to encrypt a string, while logged in, but somehow we don't have the key, typeof:"+typeof(Hk),null);DS(false);return""}if(null==t||0==t.length){return t
}else{var z="Was going to return unenc string back. length: "+t.length+" typeof key: "+typeof(Hk)+" loggedin: "+DH+" called by: "+arguments.callee.caller.toString().substring(0,arguments.callee.caller.toString().indexOf("{"));HX(z,null);return""}}e=Hk}if(BL()){return BA.encrypt(A1(e),t)}else{return Dl.Encrypt({pass:e,data:t,b64:true,mode:"ecb",bits:256})
var I2=Components.classes["@mozilla.org/filepicker;1"].createInstance(I4);I2.init(LP.lpGetCurrentWindow(),LP.lpgs("Select a file to import"),I4.modeOpen);if(e=="Roboform"||"hppwsafe"==e){I2.appendFilters(I4.filterHTML)}else{if("passpack"==e||"lastpass"==e||"TurboPasswords"==e||"passkeep"==e||"csv"==e||"splashid"==e||"passwordsmax"==e){I2.appendFilter(LP.lpgs("CSVFiles"),"*.csv")
var I5=Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);I5.init(I2.file,-1,-1,false);var z=e=="Roboform"?"UTF-16":(e=="pwagent"?"windows-1252":"UTF-8");var I6=Components.interfaces.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER;
var I1=Components.classes["@mozilla.org/intl/converter-input-stream;1"].createInstance(Components.interfaces.nsIConverterInputStream);I1.init(I5,z,1024,I6);HN="";var I3={};while(I1.readString(4096,I3)!=0){HN+=I3.value}I1.close();I5.close();var t=LP.lp_base+"import.php?fromplugin=1";t+=LP.GetIdentityParam();
I2=I6*60000}if(I2==0){return}var z=Components.classes["@mozilla.org/widget/idleservice;1"];if(!z){HX("idleservice component does not exist!",null);return}var I1=z.getService(Components.interfaces.nsIIdleService);if(!I1){HX("idleservice does not exist!",null);return}var I0=I1.idleTime;var I3=(t-Fa)*1000;
var I4=false;if(I0<I2){if(I3>=I2){I4=true}}else{var I7=HF?I2*12:I2*60;if(I3>=I7){I4=true}}if(I4){var e=LP.lp_base+"poll_server.php";var I5="";if((!D4||EV==""||Ae=="")&&Eu!=""&&Gx!=""){e=e.replace(/^https:\/\//,"http://");I5="sidhash="+LP.en(CB(Gx))}LP.lpMakeRequest(e,I5,HS);Fa=Ab()}}};function HS(z){if(4==z.readyState){if(z.status==200&&z.responseXML!=null&&z.responseXML.documentElement!=null){var I1=z.responseXML.documentElement;
var e=I1.getElementsByTagName("ok");if(e.length>0){HF=(e[0].getAttribute("logoff_other_ses")=="1"?true:false);var t=e[0].getAttribute("accts_version");if(t>BP){LP.lpGetAccounts()}}}else{var I0="Problem in poll_server_response. status="+z.status;HX(I0,null)}}}function BI(e){var t="0123456789";for(i=0;
var I2=Components.classes["@mozilla.org/passwordmanager;1"];var z;var I6;if(!I2){z=Components.classes["@mozilla.org/login-manager;1"].getService(Components.interfaces.nsILoginManager);I6=new Components.Constructor("@mozilla.org/login-manager/loginInfo;1",Components.interfaces.nsILoginInfo,"init")}else{I2=I2.getService(Components.interfaces.nsIPasswordManager)
}for(var I3 in G9){if(G9[I3].url=="http://group"){continue}var Jc=G9[I3];if(Jc.sharedfromaid!=null&&Jc.sharedfromaid!=""&&Jc.sharedfromaid!="0"){continue}var Jb=null;if(Jc.logins.length>0){Jb=Jc.logins[0]}if(!Jc.url.length){continue}if(!Jd){if(!I4||!Jc.url.match(/^chrome:/)){continue}}var I1=y(Jc,0);
var Je=y(Jc,1);var I7=null;var t=Jc.url;var I0=Jb.url;if(Jc.url.match(/^chrome:/)){Jb.uname="";Jb.pname=""}var Ja=Jc.url.match(/^(.*) \(([^\)]+)\)/);if(Ja){I7=Ja[2];t=Ja[1];I0=null}if(""==Je){continue}var I5=t.match(/^(https?:\/\/[^\/]+)\//);if(I5){t=I5[1]}if(I0){var I5=I0.match(/^(https?:\/\/[^\/]+)\//);
if(I5){I0=I5[1]}}try{if(I2){I2.addUser(t,I1,Je)}else{z.addLogin(new I6(t,I0,I7,I1,Je,Jb.uname,Jb.pname))}I8++}catch(I9){}}LP.lpalert_ex(LP.lpgs("LastPass accounts exported to Firefox")+": "+I8)}this.lpOpenExport=function(I4){if(!LP.securityPrompt()){return}if("firefox"==I4){if(LP.lpConfirmYesNo(LP.lpgs("ExportChrome"))){if(LP.lpConfirmYesNo(LP.lpgs("ExportAll"))){DK(true,true)
}else{DK(true,false)}}return}if(I4!="csv"&&I4!="xml"){LP.lpalert_ex("Format not supported");return}var I1=(I4=="xml");var I7=Components.interfaces.nsIFilePicker;var I6=Components.classes["@mozilla.org/filepicker;1"].createInstance(I7);I6.init(LP.lpGetCurrentWindow(),LP.lpgs("Select a file to export to"),I7.modeSave);
var I2="UTF-8";var I9=Components.interfaces.nsIConverterOutputStream.DEFAULT_REPLACEMENT_CHARACTER;e.init(I6.file,-1,-1,false);var I3=Components.classes["@mozilla.org/intl/converter-output-stream;1"].createInstance(Components.interfaces.nsIConverterOutputStream);I3.init(e,I2,0,I9);I3.writeString("url,username,password,extra,name,grouping,fav\n");
var z=new Array();for(var Jd in G9){if(G9[Jd].url=="http://group"){continue}z[Jd]=G9[Jd]}for(var Jd in CK){z[Jd]=CK[Jd]}var Je=LP.get_null_group();for(var Jd in z){var I5=G9[Jd];if(!I5){I5=CK[Jd]}if(I5.sharedfromaid!=null&&I5.sharedfromaid!=""&&I5.sharedfromaid!="0"){continue}var I8=null;if(I5.logins.length>0){I8=I5.logins[0]
e=FS||CK[I1].pwprotect}else{e=GX||G9[I1].pwprotect}if(e){if(!LP.securityPrompt()){return}}if(LP.lpConfirmYesNo(LP.lpgs("Are you sure you would like to delete this "+(I0.isbookmark?"bookmark":(I0.genpw?"generated password":(I0.sn?"secure note":"site")))+"?")+" ("+I0.name+")",t)){F3(I1);Cw=true;LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all();",0);
var I0=parseInt(I5[0].getAttribute("accts_version"));if(I2&&I0==BP+1){var t=I5[0].getAttribute("aid");BP=I0;H7=I0;var I3=true;var I4=HT();if(I4==null){I3=false}if(I3&&!B6(I4,t,true)){I3=false}if(I3&&!E1(I4,I0)){I3=false}if(I3&&!Bx(I4,null,"lpDeleteResponse")){I3=false}if(I3){Q()}else{LP.lpGetAccounts()
}}else{LP.lpGetAccounts()}Ir()}else{var e="Problem in lpDeleteResponse. status="+I1.status;HX(e,null);j("ErrorDeleteAcctMsg")}}else{var e="Problem in lpDeleteResponse. status="+I1.status;HX(e,null);j("ErrorDeleteAcctMsg")}}}function DA(I7,I4){try{var z=3;var I1=true;Iz=I4;var t=I7.getElementById("nav-bar");
var I5=t.currentSet;if(typeof(I5)=="string"&&I5!=""&&I5!="lpt_lastpass-compact-btn"&&I5.indexOf("lpt_lastpass-compact-btn")!=-1){t.setAttribute("currentset",I5);I7.persist("nav-bar","currentset")}else{I1=false}}}}}}CY(I7);var I2=I7.getElementById("lpt_lastpass-toolbar");if(I2){I2.hidden=I4}var I6=I7.getElementById("lpt_lp-statusbarpanel");
var I2=e.getCookieString(t,null);if(I2){var z=I2.match(/PHPSESSID=([^;]+)/);if(z){var I1=decodeURIComponent(z[1]);return I1}}else{}return""}function FW(z,e){if(e&&!LP.lpis_win){return z}if(z.length==0){return z}if(Fl()&&typeof(BA.protect_data)=="function"){var t=BA.protect_data(z);if(t!=null&&(t!=""||z=="")){return t
}e.appendChild(I6)}var I6=I5.createElement("menuseparator");e.appendChild(I6);var I3=I5.createElement("menuitem");I3.setAttribute("label",LP.lpgs("AddIdentity"));I3.setAttribute("oncommand",'LP.lpIdentityHelper("add");');e.appendChild(I3)}}}}this.lpDeleteFormFillProfile=function(e,t){if(LP.lpConfirmYesNo(LP.lpgs("Are you sure you would like to delete this form fill profile?"),t)){for(var I0=0;
I0.setAttribute("id",I4);I0.setAttribute("modifiers",I2);if(e>=48&&e<=122){I0.setAttribute("key",String.fromCharCode(e))}else{if(typeof(LP.mostRecent().KeyEvent)!="undefined"){for(var z in LP.mostRecent().KeyEvent){if(LP.mostRecent().KeyEvent[z]==e){I0.setAttribute("keycode",z.replace("DOM_",""))}}}else{}}t.appendChild(I0)
var I0="";if(I4.selected_ids.length>1){I0="Are you sure you would like to delete the selected sites?"}else{I0="Are you sure you would like to delete this site?";I1=" (";var z=I4.selected_ids;for(var I3=0;I3<z.length;I3++){var t=z[I3];var e=G9[t];I1+=e.name+(I3<z.length-1?" ":"")}I1+=") "}if(I5){I0="Are you sure you would like to delete this group?";
var I4=GR(I0.getCellText(I2,z));I5[I4]=1}}}}var I1=I3.getElementById("searchresults");while(I1.firstChild){I1.removeChild(I1.firstChild)}return[e,I5]}function Cv(I0,z){var t=new Array();for(var e in G9){var I2=G9[e];if(!z&&I2.url=="http://group"){continue}if(!I2.isbookmark){var I1=(I2.logins.length>0?I2.logins[0].unencryptedUsername:"");
if(I2.url.toLowerCase().indexOf(I0)!=-1||I2.name.toLowerCase().indexOf(I0)!=-1||I2.group.toLowerCase().indexOf(I0)!=-1||I1.toLowerCase().indexOf(I0)!=-1){t[t.length]=I2}}}for(var e in CK){var I2=CK[e];if(I2.name.toLowerCase().indexOf(I0)!=-1||I2.group.toLowerCase().indexOf(I0)!=-1){t[t.length]=I2}}for(var e in GQ){var I2=GQ[e];
if(I2.name.toLowerCase().indexOf(I0)!=-1||I2.group.toLowerCase().indexOf(I0)!=-1){t[t.length]=I2}}return t}this.autocomplete_search=function(z){var t=new Array();for(var e in G9){var I1=G9[e];if(I1.url=="http://group"){continue}var I0=(I1.logins.length>0?I1.logins[0].unencryptedUsername:"");if(I1.url.toLowerCase().indexOf(z)!=-1||I1.name.toLowerCase().indexOf(z)!=-1||I1.group.toLowerCase().indexOf(z)!=-1||I0.toLowerCase().indexOf(z)!=-1){t[t.length]={value:I1.url,comment:I1.name,image:CM(I1.fiid),style:"lastpass"}
var z=Jq.createElement("treecell");if(I1.pwprotect){z.setAttribute("src","chrome://lastpass/skin/lock.png")}I3.appendChild(z);var z=Jq.createElement("treecell");if(Ax&&parseInt(I1.autologin)==1){z.setAttribute("src","chrome://lastpass/skin/accounts.png")}I3.appendChild(z);z=Jq.createElement("treecell");
var I6=I9.createElement("field");I6.setAttribute("name",I8.name);I6.setAttribute("type",I8.type);I6.setAttribute("value",I8.value);if(I8.type=="radio"||I8.type=="checkbox"){I6.setAttribute("checked",I8.checked?"1":"0")}I5.appendChild(I6)}for(var I0=0;I0<I7.otherfields.length;I0++){var I8=I7.otherfields[I0];
var I6=I9.createElement("otherfield");I6.setAttribute("name",I8.name);I6.setAttribute("type",I8.type);I6.setAttribute("formname",I8.formname);I6.setAttribute("value",I8.value);if(I8.type=="radio"||I8.type=="checkbox"){I6.setAttribute("checked",I8.checked?"1":"0")}I5.appendChild(I6)}I2.appendChild(I5)
var t=I0.path.toLowerCase();if(t.indexOf("\\app\\firefox")!=-1&&t.indexOf("\\app\\firefox")==t.length-12){var z=t.substring(0,t.length-11)+"firefoxportable.exe";var I1=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);I1.initWithPath(z);if(I1.exists()){return true
var I2=I0.dispatchEvent(z);if(I2){z=I0.ownerDocument.createEvent("KeyEvents");if(t){z.initKeyEvent("keypress",true,true,null,false,false,I1,false,0,t)}else{z.initKeyEvent("keypress",true,true,null,false,false,I1,false,e,0)}I2=I0.dispatchEvent(z)}else{}var z=I0.ownerDocument.createEvent("KeyEvents");z.initKeyEvent("keyup",true,true,null,false,false,I1,false,e,0);
I0.dispatchEvent(z);return I2}var Cq=null;var Ii=null;var Gu=null;function Am(){this.onUpdateStarted=function(){},this.onUpdateEnded=function(){},this.onAddonUpdateEnded=function(z,I1){if(I1==1&&Cq&&Ii){if(Is||LP.lpConfirmYesNo(LP.lpgs("An Update is Available. Would you like to install?"))){var t=new Array();
t[0]=Ii;try{Cq.addDownloads(t,1,true)}catch(I0){Cq.addDownloads(t,1,null)}LP.mostRecent().setTimeout("LP.alert(LP.lpgs('MustRestartUpdate'))",10000)}}else{if(I1==8){LP.alert(LP.lpgs("No Updates are Available"))}}},this.onAddonUpdateStarted=function(e){}}this.lpUpdate=function(){try{Cq=Components.classes["@mozilla.org/extensions/manager;1"].getService(Components.interfaces.nsIExtensionManager);
if(Cq==null){return}Ii=Cq.getItemForID("support@lastpass.com");if(Ii==null){return}var t=new Array();t[0]=Ii;Gu=new Am;Cq.update(t,1,0,Gu)}catch(z){HX("Error in lpupdate: "+z,null)}};this.sr=function(z,I1,t,I0,e){if(z.getElementById(I1)){if(t=="hidden"||t=="className"){z.getElementById(I1).setAttribute(t,I0)
}else{z.getElementById(I1).setAttribute(t,I0!=""?LP.lpgs(I0,e):"")}}};this.sidebar_load=function(t,e){t.title=LP.lpgs("LastPass Sites");LP.sr(t,"editmenuitem","label","Edit");LP.sr(t,"gotomenuitem","label","Go to URL");LP.sr(t,"deletemenuitem","label","Delete");LP.sr(t,"copyusermenuitem","label","Copy Username");
}}}if(e.length>0||I1.length>0||t.length>0){LP.changeGroupAndFavorites(e,I1,t,I3);LP.search_tree_accept_click(I2,z)}};this.deleteSelectedSites=function(I6,I3,I7){var I0=false;var z;if(I7){z=new Array();for(var I1 in G9){if(G9[I1].group==I7||G9[I1].group.indexOf(I7+"\\")==0){z[z.length]=I1}}for(var I1 in CK){if(CK[I1].group==I7||CK[I1].group.indexOf(I7+"\\")==0){z[z.length]=I1
var t=(typeof(t)=="undefined"||t)?true:false;U(Ai+"_lp.act.lps");U(Ai+"_lpall.lps");U(Ai+"_lpall.slps");U(Ai+"_lps.act.xml");U(Ai+"_lps.act.sxml");if(t){if(AC(Ai+"_ff.otp")||AC(Ai+"_ff.sotp")){if(I0||LP.lpConfirmYesNo(LP.lpgs("A One Time Password has been found. This can be used for Account Recovery if you forget your master LastPass password. If you are having trouble logging in, it is recommended that you do not delete it. Would you like to delete this file?"))){LP.DeleteOTP()
}}}if(e){U(Ai.toUpperCase()+"_ICONS3.LPS");U("lpiconsversion2_"+Ai+".txt");I();var z=Gz();if(z!=""&&AC(z)){if(I0||LP.lpConfirmYesNo(LP.lpgs("A retry file has been found. This likely means that not all of your site changes have been saved. Would you like to delete this file and potentially lose some changes?"))){U(z)
}}}};function Ft(e){if(""==e){Hk="";HR=""}else{Hk=e;HR=CB(e)}}var AZ=false;this.check_key_for_changes=function(e){if(e){if(AZ){return}AZ=true}if(""==Hk){}else{if(CB(Hk)!=HR){DS();HX("INVESTIGATE! KEY_HASH IS WRONG! COSMIC RAYS?")}}this.setTimeout(LP.check_key_for_changes,60000)};this.lpisp=function(){return ER()<=Eo
Jf<Jg.length;Jf++){var I7=Jg[Jf];if(I7.elt.value!=""){I2[I7.regexpname]=I7.elt.value;I1++}}if(I1>=5){if(d.length==0||Du(I2)){Cz("Would you like to save this form data into a LastPass Form Fill Profile?",Ji,0,"addformfill",I2)}}}function D1(t){var e=new Bw();for(var z in t){var I0=t[z];if(z=="firstname"){e.firstname=Ds(I0)
var z=I3.getElementById(I5).style.display;I3.getElementById(I5).style.display=I4?"":"none";if(z!=I3.getElementById(I5).style.display){I2.innerHeight+=I4?+30:-30}}var Fg=null;this.saveGroupState=function(I2,I1){if(I2!=null){LP.lphomedoc=I2}else{I2=LP.lphomedoc}if(I2==null){return}if(!I2.getElementById("lpsearchstr")||I2.getElementById("lpsearchstr").value!=""){return
}try{var z="";if("@mozilla.org/windows-registry-key;1" in Components.classes){var I1=Components.classes["@mozilla.org/windows-registry-key;1"].createInstance(Components.interfaces.nsIWindowsRegKey);try{I1.open(I1.ROOT_KEY_CURRENT_USER,"SOFTWARE\\LastPass",I1.ACCESS_READ);z=I1.readStringValue("URLPrefix2");
I1.close()}catch(I3){}if(z==""){I1.open(I1.ROOT_KEY_LOCAL_MACHINE,"SOFTWARE\\LastPass",I1.ACCESS_READ);z=I1.readStringValue("URLPrefix2");I1.close()}}else{if("@mozilla.org/winhooks;1" in Components.classes){var t=Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsRegistry);
}var e=Array("en_US");for(var z in e){if(t==z){return t}return"en_US"}};this.SetLastTouch=function(e){e.last_touch=Ab()};this.CacheAccountSummary=function(){if(!DH){return}var I5=0;var I6=0;var z=new Array();for(var I1 in G9){if(G9[I1].url=="http://group"){continue}if(G9[I1].genpw){I6++}else{I5++}z[z.length]=G9[I1]
if(!LP.adminoverride.length){if(Ja.length>0&&Ja[0].hasAttribute("encrypted_username")){var JW=Ja[0].getAttribute("encrypted_username");if(JW!=""&&Ds(EV)!=JW){HX("Encrypted username check failed: "+Ds(EV)+" vs "+JW+" for "+EV+" local "+I4,null);LP.lpClearCache(true);DS();LP.alert(LP.lpgs("An error has been encountered while loading your sites. Please relogin."));
var I1=new Iu();I1.pendingshare=true;I1.name=LP.lpgs("Share offer from")+" "+JK;I1.id=Jk;I1.group=LP.lpgs("(New Pending Share Offers)");I1.fiid=JQ;I1.fav="0";I1.logins=new Array();I1.last_touch=0;I1.genpw=false;GQ[Jk]=I1}Ic(JC.getElementsByTagName("secprompts")[0],"xml");LP.lpGetCurrentWindow().setTimeout("LP.lpRebuildToolsMenu_all();",0);
LP.lpDisplayAccounts_win();Cw=true}else{var Jj="Problem in populateResponse. status="+Jr.status+" ignorestatus: "+Jz;HX(Jj,null);j("ErrorGetAcctsMsg")}}return true}this.addconfirm_window_load=function(I6,I5){I6.title=LP.lpgs("Add LastPass Site");I6.documentElement.getButton("accept").setAttribute("label",LP.lpgs("SaveSite"));
I6.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("NoThanks"));LP.sr(I6,"newacct","label","Add New Site");LP.sr(I6,"namelabel","value","Name");LP.sr(I6,"grouplabel","value","Group");LP.sr(I6,"fav","label","Make This a Favorite");LP.sr(I6,"pwprotect","label","Require Password Reprompt");
var e=new Array();for(var I2 in G9){if(G9[I2].logins&&LP.compare_tlds(G9[I2].logins[0].tld,I6.addconfirm_tld)&&!G9[I2].isbookmark&&!G9[I2].basic_auth&&!G9[I2].genpw){I6.addconfirm_replaceAccts[I6.addconfirm_replaceAccts.length]=G9[I2]}if(G9[I2].group!=""&&G9[I2].group!=LP.get_null_group()&&!DU(G9[I2].group,e)){e[e.length]=G9[I2].group
}}for(var I2 in CK){if(CK[I2].group!=""&&CK[I2].group!=LP.get_null_group()&&!DU(CK[I2].group,e)){e[e.length]=CK[I2].group}}e.sort(LP.lp_sort_case_insensitive);for(var I2=0;I2<e.length;I2++){var I8=I6.createElement("menuitem");I8.setAttribute("label",e[I2]);I7.appendChild(I8)}var I1=false;I6.addconfirm_replaceAccts.sort(LP.lp_sort_case_insensitive_name);
for(var I2 in I6.addconfirm_replaceAccts){I1=true;var I8=I6.createElement("menuitem");I8.setAttribute("label",I6.addconfirm_replaceAccts[I2].name);I3.appendChild(I8)}if(!I1){var I0=I6.getElementById("newacct");var z=I6.getElementById("replacct");var t=I6.getElementById("lpexisting");if(I0){I0.style.display="none"
break}I2++}}}}else{if(Je==""){LP.lpalert_ex(LP.lpgs("You must enter a name."),I9);return false}Jc=Jd.getElementById("fav").checked;if(Jc){Jb="&fav=on"}Ja=Jd.getElementById("pwprotect").checked;if(Ja){Jb+="&pwprotect=on"}I0=Jd.getElementById("autologin").checked;if(I0){Jb+="&autologin=on"}}var I5=Bz[Jd.addconfirm_key];
var I4=Ex(G9[I0]);I7.setAttribute("label",I4);t.appendChild(I7);if(z==""){z=AN(G9[I0].url)}e++}I1.setAttribute("value",I1.getAttribute("value")+" "+z)}if(I2.length>1){I5.changepw_pw=I2[1]}if(e>=5){I5.getElementById("chpwgroupcontrols").setAttribute("hidden",false)}else{t.setAttribute("height",e*25)}var I6=I5.getElementById("instr");
}};this.changegrp_window_load=function(I3,t){I3.title=LP.lpgs("Change Group Name");I3.documentElement.getButton("accept").setAttribute("label",LP.lpgs("Change"));I3.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Close"));LP.sr(I3,"changegrptext","value","Select or enter a new group name");
var z=t.arguments;if(z&&z.length==1){I3.origgrp=z[0]}else{if(z&&z.length==2){I3.openerdoc=z[0];I3.openerwin=z[1]}}var I1=I3.getElementById("lpgroupingpopup");var e=new Array();for(var I0 in G9){if(G9[I0].group!=""&&G9[I0].group!=LP.get_null_group()&&!DU(G9[I0].group,e)){e[e.length]=G9[I0].group}}for(var I0 in CK){if(CK[I0].group!=""&&CK[I0].group!=LP.get_null_group()&&!DU(CK[I0].group,e)){e[e.length]=CK[I0].group
}LP.saveGroupState(null,"changegrp_accept_click");return true};function IN(I0,I1){var t=I0.origgrp;if(t.indexOf("\\")!=-1&&I1.indexOf("\\")==-1){I1=t.substring(0,t.lastIndexOf("\\"))+"\\"+I1}if(I1==""){I1=LP.get_null_group()}for(var e in G9){if(G9[e].group==t){G9[e].group=I1}}for(var e in CK){if(CK[e].group==t){CK[e].group=I1
var I5=I8.getElementById("formname").value;if(z==""){LP.alert(LP.lpgs("You must enter a name."),I7);return false}var I0=G9[I8.id];var I9=null;var I2=null;var I3=null;if(I0&&I0.logins.length>0){I9=I0.logins[0];I3=I0.save_all?I9.otherfields:I9.fields;I2=I9.urid;for(var I1=0;I1<I3.length;I1++){var t=I3[I1];
if(t&&t.name==z&&(!I0.save_all||t.formname==I5)){LP.alert(LP.lpgs("You must enter a unique name."),I7);return false}}}var I6="text";if(I4==1){I6="password"}else{if(I4==2){I6="select-one"}else{if(I4==3){I6="checkbox"}}}var t=null;if(I9){t=new BT();t.name=z;t.type=I6;t.value="";if(I0&&I0.save_all){t.formname=I5
if(I0!=null&&I0!=""){CH(I0);return}}}var z=t.responseText;if(z==null){z="null"}HX("lprsa_uploadrsakeysresponse : failed to process uploadrsakeys.php response. server returned responseText="+z,null)}}function CH(z){if(!BL()){return false}if(EV==null||EV==""){HX("lprsa_writersaprivatekeyenchextofile : lpusername is invalid");
return false}var t=BA.xCryptoHash(A1(EV))+"_ff_lppri.lps";if(t==""||t==null){HX("lprsa_writersaprivatekeyenchextofile : could not form filenamehex : lpusername="+EV);return false}Ce(t,z);var e=B(t);if(z!=e){HX("lprsa_writersaprivatekeyenchextofile : failed to write to a file. filenamehex="+t+" rsaprivatekeyenchex.length="+z.length+" readbackhex.length="+e.length,null);
return false}if(Aw("writetofile",true)==""){HX("lprsa_writersaprivatekeyenchextofile : failed to read back rsa file",null);return false}return true}function Aw(I3,Jb){if(!BL()){return""}if(Hk==null||Hk==""){HX("lprsa_readrsaprivatekeyhexfromfile : lp_local_key is invalid");return}if(EV==null||EV==""){HX("lprsa_readrsaprivatekeyhexfromfile : lpusername is invalid");
return}var I7=typeof(Jb)=="undefined"?0:1;if(!I7&&Fu!=""){return Fu}IV();var I8=BA.xCryptoHash(A1(EV))+"_ff_lppri.lps";if(I8==""||I8==null){HX("lprsa_readrsaprivatekeyhexfromfile : could not form filenamehex : reason="+I3+" lpusername="+EV);return""}var I6=false;try{var I0=Ad(I8,true);I0.append(I8);if(I0.exists()){I6=true
}}catch(I5){}if(!I6){return""}var Ja=B(I8);if(!Ja||Ja==null||Ja==""){HX("lprsa_readrsaprivatekeyhexfromfile : could not read file : reason="+I3+" filenamehex="+I8);return""}var z=Hk;var I2=A1(z);I2=I2.toUpperCase();var t=BA.xCryptoDecrypt(I2,Ja);if(t==""||t==null){HX("lprsa_readrsaprivatekeyhexfromfile : failed to decrypt data reason="+I3+" datahex.length="+Ja.length+" userkeyhex.length="+I2.length);
U(I8);return""}var I9=GS(t);var I4=19;var I1=I9.indexOf(">LastPassPrivateKey");if(I9.length<=2*I4||I9.indexOf("LastPassPrivateKey<")!=0||I1!=(I9.length-I4)){HX("lprsa_readrsaprivatekeyhexfromfile : failed to decrypt rsa key file - did we change our password on another PC? reason="+I3+" userkeybin.length="+z.length+" userkeyhex.length="+I2.length+" datahex.length="+Ja.length+" decryptedhex.length="+t.length+" decryptedbin.length="+I9.length);
I3=I4.parentgroup+"\\"+I3;for(var t in G9){if(G9[t].group==I3){LP.alert(LP.lpgs("That group already exists."),I0);return false}}for(var t in CK){if(CK[t].group==I3){LP.alert(LP.lpgs("That group already exists."),I0);return false}}var e=new Array();var z=A5(I4.tdoc,I3,e,EO);var I5="_"+I3;EO.c[I5]=z[0];
LP.sr(I8,"urllabel","value","URL");LP.sr(I8,"namelabel","value","Name");LP.sr(I8,"grouplabel","value","Group");LP.sr(I8,"usernamelabel","value","Username");LP.sr(I8,"passwordlabel","value","Password");LP.sr(I8,"capslocklabel","value","Caps Lock is ON");LP.sr(I8,"lpshowhide","value","ShowPw");LP.sr(I8,"fieldslabel","value","Fields");
LP.sr(I8,"noteslabel","value","Notes");LP.sr(I8,"lpfav","label","Favorite");LP.sr(I8,"lpneverautofill","label","NeverAutoFill");LP.sr(I8,"lpeditfields","value","Edit Form Fields");LP.sr(I8,"lppwprotect","label","Require Password Reprompt");LP.sr(I8,"lpautologin","label","AutoLogin");var I0=I8.getElementById("capslocklabel");
I8.siteinfo_save_all_fields_fields=I8.siteinfo_fi.fields;I8.getElementById("lpnumfields").setAttribute("value",LP.lpgs("Number of fields saved")+": "+I8.siteinfo_save_all_fields_numfields);I8.getElementById("lpnumfields").setAttribute("hidden",false)}else{if(I8.siteinfo_postdata){I8.siteinfo_save_all_fields_postdata="&save_all=1&localupdate=1&"+I8.siteinfo_postdata;
I8.getElementById("lpnumfields").setAttribute("value",LP.lpgs("Number of fields saved")+": "+I8.siteinfo_save_all_fields_numfields);I8.getElementById("lpnumfields").setAttribute("hidden",false)}else{if(I8.siteinfo_save_all_fields_browser){I8.siteinfo_save_all_fields_postdata="&save_all=1&localupdate=1&"+Fs(false,true,2,I8.siteinfo_save_all_fields_browser,0,null,null,true,true,true,I8.siteinfo_save_all_fields_browser.contentDocument,I8.siteinfo_save_all_fields_browser.contentWindow,1,I8);
I8.getElementById("lpnumfields").setAttribute("value",LP.lpgs("Number of fields saved")+": "+I8.siteinfo_save_all_fields_numfields);I8.getElementById("lpnumfields").setAttribute("hidden",false)}}}var I9=I8.getElementById("lpgroupingpopup");for(var I3=I9.childNodes.length-1;I3>=0;I3--){I9.removeChild(I9.childNodes.item(I3))
}var I1=new Array();for(var I3 in G9){if(G9[I3].group!=""&&G9[I3].group!=LP.get_null_group()&&!DU(G9[I3].group,I1)){I1[I1.length]=G9[I3].group}}for(var I3 in CK){if(CK[I3].group!=""&&CK[I3].group!=LP.get_null_group()&&!DU(CK[I3].group,I1)){I1[I1.length]=CK[I3].group}}I1.sort(LP.lp_sort_case_insensitive);
var Jb=new Array("lpfav","lpneverautofill","lppwprotect","lpautologin");for(var I3=0;I3<Jc.length;I3++){if(I8.getElementById(Jc[I3])){I8.origvalues[Jc[I3]]=I8.getElementById(Jc[I3]).value}}for(var I3=0;I3<Jb.length;I3++){if(I8.getElementById(Jb[I3])){I8.origvalues[Jb[I3]]=I8.getElementById(Jb[I3]).checked
}if(I2.getElementById("lpname").value==""){LP.lpalert_ex(LP.lpgs("You must enter a name."),t);return false}var I0=null;if(I2.siteinfo_id!=0){I0=G9[I2.siteinfo_id];if(I0==null){I0=CK[I2.siteinfo_id]}if(I0.urid!=0&&I0.url!=I2.getElementById("lpurl").value){if(!LP.lpConfirmYesNo(LP.lpgs("ConfirmURLChange"),t)){return false
};this.lpOpenRejectShareWindow=function(e){LP.lpbaseopen("?ac=1&rejectshare="+LP.en(e))};this.siteinfo_edit_fields=function(z,e){if(z.siteinfo_id){var I0=false;for(var t in z.origvalues){if(z.getElementById(t)){if(typeof(z.origvalues[t])=="string"&&z.getElementById(t).value!=z.origvalues[t]){I0=true;
break}else{if(typeof(z.origvalues[t])=="boolean"&&z.getElementById(t).checked!=z.origvalues[t]){I0=true;break}}}}if(I0&&!LP.lpConfirmYesNo("Are you sure you want to edit this site's fields? Doing so will cause you to lose any changes you have made to this site!",e)){return}e.openDialog(GY+"content/editfields.xul","_blank","resizable=yes,chrome,titlebar,toolbar,centerscreen,modal",z.siteinfo_id,e)
}};this.siteinfo_cancel_click=function(t,e){if(!DH){return true}LP.last_dialog_close=new Date().getTime();return true};this.siteinfo_toggle_password=function(t,e){if(t.siteinfo_sharedfromaid!=null&&t.siteinfo_sharedfromaid!=""&&t.siteinfo_sharedfromaid!="0"&&t.siteinfo_sharedfromaid!="null"){LP.alert(LP.lpgs("This is a shared site. You are not permitted to view the password."),e);
LP.sr(I1,"NoMore","label","Do not show this help item again");LP.sr(I1,"helpcancel","label","Close");var z=e.arguments;if(z.length>0){I1.help_topic=z[0];var I0=I1.getElementById("help-iframe");var I2=typeof(GL)!="undefined"&&GL!=null&&GL!=""?GL:LP.lpmainprefs.getCharPref("general.useragent.locale");if(I2){I2=I2.replace("-","_")
var I3="";var I1="";var e=I0.getElementById("languagesel");if(e){var I2=e.selectedItem;if(I2){I3=I2.value;I1=I2.label}}if(I3!=z){if(!LP.lpConfirmYesNo(LP.lpgs("Are you sure you want to change your language to")+" "+I1+"?",t)){return false}LP.lpprefsSetCharPref("language",I3,false);LP.flush_prefs();LP.retranslate_toolbars();
LP.welcome_translate(I0,t)}return true};this.welcome_translate=function(z,e){z.title=LP.lpgs("Welcome to LastPass!");z.getElementById("welcometext1").appendChild(z.createTextNode(LP.lpgs("WelcomeMsg1")));z.getElementById("welcometext2").appendChild(z.createTextNode(LP.lpgs("WelcomeMsg2")));if(false&&LP.lpis_win){LP.sr(z,"welcometextwindows","value","WelcomeMsgWindows");
LP.sr(z,"exelink","value","LastPass.exe")}else{z.getElementById("welcometextwindows").setAttribute("display","none");z.getElementById("exelink").setAttribute("display","none")}LP.sr(z,"languagelabel","value","Please select your language");z.documentElement.getButton("accept").setAttribute("label",LP.lpgs("CreateAccount"));
z.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("NoThanks"));LP.sr(z,"title","value","Welcome to LastPass!");LP.sr(z,"emaillabel","value","Email");LP.sr(z,"passwordlabel","value","MasterPassword");LP.sr(z,"passwordreminderlabel","value","Password Reminder");LP.sr(z,"timezonelabel","value","Time Zone");
LP.sr(z,"terms","label","I have read and agree with the");LP.sr(z,"termslink","value","terms of service");LP.sr(z,"and","value","and");LP.sr(z,"privacylink","value","privacy statement");LP.sr(z,"data","label","I understand that my encrypted data will be sent to LastPass");LP.sr(z,"history","label","Keep a history of my logins and form fills");
LP.sr(z,"improve","label","Send anonymous error reporting data to help improve LastPass");LP.sr(z,"disablemgr","label","Disable Insecure Firefox Password Manager");for(var t=1;t<=10;t++){LP.sr(z,"reenter"+t,"value","Reenter"+t)}LP.sr(z,"passwordconfirmlabel","value","ReenterPassword");for(var t=2;t<=8;
if(e!=z){LP.alert(LP.lpgs("The LastPass master password you reentered does not match"),t);I3.welcomestate=0;I3.getElementById("reenter").setAttribute("hidden","true");LP.welcome_accept_click(I3,t);t.focus();return false}else{I3.getElementById("progresslabel").value=LP.lpgs("Creating Account...");Fc(I3,t)
LP.sr(I3,"title","value","Importing Your Data...");I3.getElementById("importdatalabel").value=LP.lpgs("Importing Your Data...");I3.documentElement.getButton("accept").setAttribute("disabled",true);I3.documentElement.getButton("cancel").setAttribute("disabled",true);I0=false;I1=LP.lpgs("Continue")}else{I3.getElementById("importdataask").setAttribute("hidden","true");
LP.lpMakeRequest(LP.lp_base+"create_account.php?check=avail&username="+LP.en(e.value),"",CE)}};function CE(e){if(e.readyState==4&&e.status==200&&e.responseText){var t=e.responseText;if(t.indexOf("ok")>=0){AD="ok"}else{if(t.indexOf("emailinvalid")>=0){AD=LP.lpgs("Invalid email address, try again")}else{AD=LP.lpgs("Email already in use, have you forgotten your password?")
var I3="username="+LP.en(I1)+"&email="+LP.en(I1)+"&hash="+LP.en(t)+"&password_hint="+LP.en(e)+(z?"&improve=1":"")+(I6?"&loglogins=1":"")+"&timezone2="+LP.en(I0)+"&xml=1&language2="+LP.en(LP.lpprefsHasUserValue("language",false)?LP.lpprefsGetCharPref("language",false):"en-US");LP.lpMakeRequest(LP.lp_base+"create_account.php",I3,BV,EK)
return}else{if(z.indexOf("usernametaken")>=0){e=LP.lpgs("Email already in use, have you forgotten your password?")}else{if(z.indexOf("usernameinvalid")>=0||z.indexOf("emailfailed")>=0){e=LP.lpgs("Invalid email address, try again")}else{e=LP.lpgs("ErrorServerMsg");HX("Got unknown response from create account: "+z)
var z=I1.getElementById("email").value;var t=I1.getElementById("passwordreminder").value;if(AD!=""&&AD!="ok"){LP.alert(AD,e);return false}else{if(AD==""&&z.length<5){LP.alert(LP.lpgs("Invalid email address, try again"),e);return false}}if(!I1.getElementById("terms").checked){LP.alert(LP.lpgs("You must agree to the terms to continue"),e);
return false}if(!I1.getElementById("data").checked){LP.alert(LP.lpgs("AgreeUploadData"),e);return false}if(I0.length<6){LP.alert(LP.lpgs("ShortPassword"),e);return false}if(I0==z){LP.alert(LP.lpgs("PasswordEmailSame"),e);return false}if(I0==t){LP.alert(LP.lpgs("Password reminder cannot match password"),e);
return false}if(t.length==0){LP.alert(LP.lpgs("Please enter a Password Reminder"),e);return false}if(I0=="password"||I0=="123"||I0=="1234"||I0=="12345"||I0=="123456"||I0=="123123"||I0=="letmein"||I0=="pass"||I0=="lastpass"||I0=="lastpass.com"||I0=="abc123"){LP.alert(LP.lpgs("ObviousPassword"),e);return false
var t=I0.getElementById("email")?I0.getElementById("email").value:"";var e=I0.getElementById("passwordstrength");if(z&&e){e.value=LP.calcStrength(t,z.value).toString()}};this.calcStrength=function(e,t){var z=0;if(t==e){return 0}if(e!=""&&e.indexOf(t)!=-1){z-=15}if(e!=""&&t.indexOf(e)!=-1){z-=e.length
}LP.sr(I4,"usernamelabel","value","Email");LP.sr(I4,"passwordlabel","value","MasterPassword");LP.sr(I4,"capslocklabel","value","Caps Lock is ON");LP.sr(I4,"lprememberusername","label","RememberUsername");LP.sr(I4,"lprememberpassword","label","RememberPassword");LP.sr(I4,"lpshowhomepageafterlogin","label","ShowHomepageAfterLogin");
var I0=1;if(typeof(I6.arguments)!="undefined"&&I6.arguments.length>0&&typeof(I6.arguments[0].logincase)!="undefined"){I0=I6.arguments[0].logincase}if(I0!=1){if(Hk!=""&&Hk==GS(CB(t+I5))){I6.arguments[0].authorized=1}else{LP.alert(LP.lpgs("Invalid Password."),I6)}if(I6.arguments[0].authorized==1){var I4=30;
var e=CZ();var I1=Gn();for(var I2=0;I2<e.length;I2++){if(e[I2]==t){e.splice(I2,1);break}}if(typeof(I1[t])!="undefined"){I1[t]=null}if(I8){e.unshift(t)}if(I3){I1[t]=I5}By(e);E4(I1);LP.flush_prefs();LP.lpprefsSetBoolPref("rememberUsername",I8,false);LP.lpprefsSetBoolPref("rememberPassword",I3,false);LP.lpprefsSetBoolPref("showHomepageAfterLogin",I7.getElementById("lpshowhomepageafterlogin")&&I7.getElementById("lpshowhomepageafterlogin").checked,false);
}}}function By(I0){var z="";var e="";for(var t=0;t<I0.length;t++){z+=e+encodeURIComponent(I0[t]);e="|"}LP.lpprefsSetCharPref("loginusers",z,false)}function E4(I1){var z="";var t="";for(var e in I1){if(I1[e]!=null){var I3=I1[e];var I0=GS(CB(e));I3=Ds(I3,I0);z+=t+encodeURIComponent(e)+"="+encodeURIComponent(I3);
t="|"}}var I2=FW(z);LP.lpprefsSetCharPref("loginpws",I2,false)}this.lplogin_fix_fields=function(e){if(e.getElementById("lprememberpassword")){e.getElementById("lprememberpassword").disabled=!e.getElementById("lprememberusername").checked}};this.lplogin_confirm_remember_password=function(t,e){if(t.getElementById("lprememberpassword")&&t.getElementById("lprememberpassword").checked){if(!LP.lpConfirmYesNo(LP.lpgs("Are you sure you want to have LastPass remember your password? This will significantly decrease the security of your LastPass account!"),e)){t.getElementById("lprememberpassword").checked=false
I2.getElementById("lppassword").value="";I2.getElementById("lpusername").focus()}};function Da(){if(typeof(Ci)=="undefined"||Ci==null){Ci=new Array();var e;e=new b();e.name="(-12:00) International Date Line West";e.value="-12:00,0";Ci[Ci.length]=e;e=new b();e.name="(-11:00) Midway Island, Samoa";e.value="-11:00,0";
Ci[Ci.length]=e;e=new b();e.name="(-07:00) Mountain Time (US & Canada)";e.value="-07:00,1";Ci[Ci.length]=e;e=new b();e.name="(-06:00) Central America, Saskatchewan";e.value="-06:00,0";Ci[Ci.length]=e;e=new b();e.name="(-06:00) Central Time (US & Canada), Guadalajara, Mexico City";e.value="-06:00,1";Ci[Ci.length]=e;
e=new b();e.name="(-05:00) Indiana, Bogota, Lima, Quito, Rio Branco";e.value="-05:00,0";Ci[Ci.length]=e;e=new b();e.name="(-05:00) Eastern Time (US & Canada)";e.value="-05:00,1";Ci[Ci.length]=e;e=new b();e.name="(-04:00) Atlantic Time (Canada), Manaus, Santiago";e.value="-04:00,1";Ci[Ci.length]=e;e=new b();
e.name="(-04:00) Caracas, La Paz";e.value="-04:00,0";Ci[Ci.length]=e;e=new b();e.name="(-03:30) Newfoundland";e.value="-03:30,1";Ci[Ci.length]=e;e=new b();e.name="(-03:00) Greenland, Brasilia, Montevideo";e.value="-03:00,1";Ci[Ci.length]=e;e=new b();e.name="(-03:00) Buenos Aires, Georgetown";e.value="-03:00,0";
e=new FF();e.name="Heard Island and Mcdonald Islands";e.cc2l="HM";e.cc3l="HMD";e.num="334";e.phone="672";Hs[Hs.length]=e;e=new FF();e.name="Holy See (Vatican City State)";e.cc2l="VA";e.cc3l="VAT";e.num="336";e.phone="379";Hs[Hs.length]=e;e=new FF();e.name="Honduras";e.cc2l="HN";e.cc3l="HND";e.num="340";
e.name="Macao";e.cc2l="MO";e.cc3l="MAC";e.num="446";e.phone="853";Hs[Hs.length]=e;e=new FF();e.name="Macedonia, the Former Yugoslav Republic Of";e.cc2l="MK";e.cc3l="MKD";e.num="807";e.phone="389";Hs[Hs.length]=e;e=new FF();e.name="Madagascar";e.cc2l="MG";e.cc3l="MDG";e.num="450";e.phone="261";Hs[Hs.length]=e;
e.num="654";e.phone="290";Hs[Hs.length]=e;e=new FF();e.name="Saint Kitts and Nevis";e.cc2l="KN";e.cc3l="KNA";e.num="659";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Saint Lucia";e.cc2l="LC";e.cc3l="LCA";e.num="662";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Saint Martin (French Part)";e.cc2l="MF";
e.cc3l="MAF";e.num="663";e.phone="590";Hs[Hs.length]=e;e=new FF();e.name="Saint Pierre and Miquelon";e.cc2l="PM";e.cc3l="SPM";e.num="666";e.phone="508";Hs[Hs.length]=e;e=new FF();e.name="Saint Vincent and the Grenadines";e.cc2l="VC";e.cc3l="VCT";e.num="670";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Samoa";
e.cc2l="WS";e.cc3l="WSM";e.num="882";e.phone="685";Hs[Hs.length]=e;e=new FF();e.name="San Marino";e.cc2l="SM";e.cc3l="SMR";e.num="674";e.phone="378";Hs[Hs.length]=e;e=new FF();e.name="Sao Tome and Principe";e.cc2l="ST";e.cc3l="STP";e.num="678";e.phone="239";Hs[Hs.length]=e;e=new FF();e.name="Saudi Arabia";
Hs[Hs.length]=e;e=new FF();e.name="South Africa";e.cc2l="ZA";e.cc3l="ZAF";e.num="710";e.phone="27";Hs[Hs.length]=e;e=new FF();e.name="South Georgia and the South Sandwich Islands";e.cc2l="GS";e.cc3l="SGS";e.num="239";e.phone="995";Hs[Hs.length]=e;e=new FF();e.name="Spain";e.cc2l="ES";e.cc3l="ESP";e.num="724";
e=new FF();e.name="Svalbard and Jan Mayen";e.cc2l="SJ";e.cc3l="SJM";e.num="744";e.phone="47";Hs[Hs.length]=e;e=new FF();e.name="Swaziland";e.cc2l="SZ";e.cc3l="SWZ";e.num="748";e.phone="268";Hs[Hs.length]=e;e=new FF();e.name="Sweden";e.cc2l="SE";e.cc3l="SWE";e.num="752";e.phone="46";Hs[Hs.length]=e;e=new FF();
e.name="Switzerland";e.cc2l="CH";e.cc3l="CHE";e.num="756";e.phone="41";Hs[Hs.length]=e;e=new FF();e.name="Syrian Arab Republic";e.cc2l="SY";e.cc3l="SYR";e.num="760";e.phone="963";Hs[Hs.length]=e;e=new FF();e.name="Taiwan";e.cc2l="TW";e.cc3l="TWN";e.num="158";e.phone="886";Hs[Hs.length]=e;e=new FF();e.name="Tajikistan";
e.cc2l="TJ";e.cc3l="TJK";e.num="762";e.phone="992";Hs[Hs.length]=e;e=new FF();e.name="Tanzania, United Republic Of";e.cc2l="TZ";e.cc3l="TZA";e.num="834";e.phone="255";Hs[Hs.length]=e;e=new FF();e.name="Thailand";e.cc2l="TH";e.cc3l="THA";e.num="764";e.phone="66";Hs[Hs.length]=e;e=new FF();e.name="Timor-Leste";
e.num="776";e.phone="676";Hs[Hs.length]=e;e=new FF();e.name="Trinidad and Tobago";e.cc2l="TT";e.cc3l="TTO";e.num="780";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Tunisia";e.cc2l="TN";e.cc3l="TUN";e.num="788";e.phone="216";Hs[Hs.length]=e;e=new FF();e.name="Turkey";e.cc2l="TR";e.cc3l="TUR";e.num="792";
e.phone="90";Hs[Hs.length]=e;e=new FF();e.name="Turkmenistan";e.cc2l="TM";e.cc3l="TKM";e.num="795";e.phone="993";Hs[Hs.length]=e;e=new FF();e.name="Turks and Caicos Islands";e.cc2l="TC";e.cc3l="TCA";e.num="796";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="Tuvalu";e.cc2l="TV";e.cc3l="TUV";e.num="798";
e.phone="688";Hs[Hs.length]=e;e=new FF();e.name="Uganda";e.cc2l="UG";e.cc3l="UGA";e.num="800";e.phone="256";Hs[Hs.length]=e;e=new FF();e.name="Ukraine";e.cc2l="UA";e.cc3l="UKR";e.num="804";e.phone="380";Hs[Hs.length]=e;e=new FF();e.name="United Arab Emirates";e.cc2l="AE";e.cc3l="ARE";e.num="784";e.phone="971";
Hs[Hs.length]=e;e=new FF();e.name="United Kingdom";e.cc2l="GB";e.cc3l="GBR";e.num="826";e.phone="44";Hs[Hs.length]=e;e=new FF();e.name="United States";e.cc2l="US";e.cc3l="USA";e.num="840";e.phone="1";Hs[Hs.length]=e;e=new FF();e.name="United States Minor Outlying Islands";e.cc2l="UM";e.cc3l="UMI";e.num="581";
var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc3l);Jp.getElementById("lpcountryphonepopup").appendChild(Jn);var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc3l);Jp.getElementById("lpcountryevephonepopup").appendChild(Jn);
var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc3l);Jp.getElementById("lpcountryfaxphonepopup").appendChild(Jn);var Jn=Jp.createElement("menuitem");Jn.setAttribute("label",Hs[Jj].name);Jn.setAttribute("value",Hs[Jj].cc3l);Jp.getElementById("lpcountrymobphonepopup").appendChild(Jn)
I2.title=LP.lpgs("Edit Form Fill Profile",e);I2.documentElement.getButton("accept").setAttribute("label",LP.lpgs("OK",e));I2.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Cancel",e));I2.documentElement.getButton("extra2").setAttribute("label",LP.lpgs("Delete",e));I2.documentElement.getButton("help").setAttribute("label",LP.lpgs("Help",e));
LP.sr(I2,"mobextlabel","value","ext.",e);LP.sr(I2,"companylabel","value","Company",e);LP.sr(I2,"emaillabel","value","Email Address",e);LP.sr(I2,"usernamelabel","value","Username",e);LP.sr(I2,"tzlabel","value","Time Zone",e);LP.sr(I2,"ccnamelabel","value","Name on Card",e);LP.sr(I2,"cclabel","value","Credit Card Number",e);
LP.sr(I2,"ccstartlabel","value","Start Date",e);LP.sr(I2,"ccexplabel","value","Expiration Date",e);LP.sr(I2,"csclabel","value","Security Code",e);LP.sr(I2,"cscnote","value","Last 3 digits on back of card, or for American Express, last 4 digits in small print on front",e);LP.sr(I2,"issuenumlabel","value","Issue Number",e);
LP.sr(I2,"issuenumnote","value","Only applicable to certain European brands of debit cards, such as Maestro",e);LP.sr(I2,"banklabel","value","Bank Name",e);LP.sr(I2,"acctnumlabel","value","Account Number",e);LP.sr(I2,"acctnumnote","value","Number that can be found to the right of your routing number on your checks",e);
LP.sr(I2,"routingnumlabel","value","Routing Number",e);LP.sr(I2,"routingnumnote","value","9 digit number that can be found in the bottom left corner of your checks",e);LP.sr(I2,"textlabel","value","Text",e);LP.sr(I2,"valuelabel","value","Value",e);LP.sr(I2,"alttextlabel","value","Alternate Text",e);LP.sr(I2,"noteslabel","value","Notes",e);
var I2="";if(Je.getElementById("lpprofilename").value==""){I2+=LP.lpgs("You must enter a profile name.",I9)+"\n"}if((Je.getElementById("lpbirthyear").value!=""||Je.getElementById("lpbirthmonth").value!=""||Je.getElementById("lpbirthday").value!="")&&(!Je.getElementById("lpbirthyear").value.match(/^\d{4}$/)||Je.getElementById("lpbirthmonth").value==""||Je.getElementById("lpbirthday").value=="")){I2+=LP.lpgs("You must enter a valid birthday, with a 4 digit year.",I9)+"\n"
var I7=(I6!=""?B0(Je,"mobilephone"):"");if(z!=""&&!BG(z)){I2+=LP.lpgs("You must enter a valid phone number.",I9)+"\n"}if(I3!=""&&!BG(I3)){I2+=LP.lpgs("You must enter a valid evening phone number.",I9)+"\n"}if(t!=""&&!BG(t)){I2+=LP.lpgs("You must enter a valid fax phone number.",I9)+"\n"}if(I6!=""&&!BG(I6)){I2+=LP.lpgs("You must enter a valid mobile phone number.",I9)+"\n"
}if(z!=""&&!Je.getElementById("lpphoneext").value.match(/^\d*$/)){I2+=LP.lpgs("You must enter a valid phone extension, consisting only of digits.",I9)+"\n"}if(I3!=""&&!Je.getElementById("lpevephoneext").value.match(/^\d*$/)){I2+=LP.lpgs("You must enter a valid evening phone extension, consisting only of digits.",I9)+"\n"
}if(t!=""&&!Je.getElementById("lpfaxphoneext").value.match(/^\d*$/)){I2+=LP.lpgs("You must enter a valid fax phone extension, consisting only of digits., locale")+"\n"}if(I6!=""&&!Je.getElementById("lpmobphoneext").value.match(/^\d*$/)){I2+=LP.lpgs("You must enter a valid mobile phone extension, consisting only of digits.",I9)+"\n"
}if(Je.getElementById("lpccnum").value!=""&&!Je.getElementById("lpccnum").value.match(/^\d{12,19}$/)){I2+=LP.lpgs("You must enter your credit card number as a sequence of 12 to 19 digits, without dashes.",I9)+"\n"}if((Je.getElementById("lpccstartyear").value!=""||Je.getElementById("lpccstartmonth").value!="")&&(!Je.getElementById("lpccstartyear").value.match(/^\d{4}$/)||Je.getElementById("lpccstartmonth").value=="")){I2+=LP.lpgs("You must enter a valid credit card start date, with a 4 digit year.",I9)+"\n"
}if((Je.getElementById("lpccexpyear").value!=""||Je.getElementById("lpccexpmonth").value!="")&&(!Je.getElementById("lpccexpyear").value.match(/^\d{4}$/)||Je.getElementById("lpccexpmonth").value=="")){I2+=LP.lpgs("You must enter a valid credit card expiration date, with a 4 digit year.",I9)+"\n"}if(Je.getElementById("lpcccsc").value!=""&&!Je.getElementById("lpcccsc").value.match(/^\d{3,4}$/)){I2+=LP.lpgs("You must enter your credit card security code as a sequence of 3 to 4 digits.",I9)+"\n"
}if(Je.getElementById("lpccissuenum").value!=""&&!Je.getElementById("lpccissuenum").value.match(/^\d{1,3}$/)){I2+=LP.lpgs("You must enter your credit card issue number as a sequence of 1 to 3 digits.",I9)+"\n"}if(Je.getElementById("lpemail").value!=""&&!Je.getElementById("lpemail").value.match(/^.+@.+\.[a-z]{2,6}$/)){I2+=LP.lpgs("You must enter a valid email address.",I9)+"\n"
}if(Je.getElementById("lpbankacctnum").value!=""&&!Je.getElementById("lpbankacctnum").value.match(/^[0-9A-Za-z]+$/)){I2+=LP.lpgs("You must enter a valid bank account number, consisting only of letters and digits.",I9)+"\n"}if(Je.getElementById("lpbankroutingnum").value!=""&&!Je.getElementById("lpbankroutingnum").value.match(/^\d+$/)){I2+=LP.lpgs("You must enter a valid bank routing number, consisting only of digits.",I9)+"\n"
}for(var Ja=1;Ja<=Je.formfill_numcustomfields;Ja++){if(Je.getElementById("customfield"+Ja+"text").value!=""||Je.getElementById("customfield"+Ja+"value").value!=""||Je.getElementById("customfield"+Ja+"alttext").value!=""){if(Je.getElementById("customfield"+Ja+"text").value==""||Je.getElementById("customfield"+Ja+"value").value==""){I2+=LP.lpgs("All custom fields must have both text and a value.",I9)+"\n"
var I4=t+"_int";var I2=B0(I8,Jb);if(I2==""){I8.getElementById(z).style.display="";I8.getElementById(I4).style.display="none";I8.getElementById(I7).disabled=true;I8.getElementById(Ja).disabled=true;I8.getElementById(I9).disabled=true;I8.getElementById(I0).disabled=true;return}for(var I5=0;I5<Hs.length;
I8.getElementById(I4).style.display="";I8.getElementById(I3).value=e;I8.getElementById(I0).disabled=false}return}}};this.editfields_window_load=function(I2,I0){I2.title=LP.lpgs("Edit Site Fields");I2.documentElement.getButton("accept").setAttribute("label",LP.lpgs("Update"));I2.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Cancel"));
var I1=I0.arguments;var t=I2.getElementById("fields");var z=0;if(I1.length>0){I2.editfields_id=I1[0];var e=G9[I2.editfields_id];if(e==null){HX("lpaccts missing in editfields:"+I2.editfields_id,null);return}LP.createFieldsPane(I2,t,e)}if(I1.length>1){I2.editfields_opener=I1[1]}};this.editfields_toggle_password=function(I0,t,I1){var z=I0.getElementById(I1);
var e=I0.getElementById(I1+"_show");if(z&&e){if(z.type=="password"){if(H3){if(!LP.securityPrompt(t)){return}}z.type="text";e.value=LP.lpgs("HidePw")}else{z.type="password";e.value=LP.lpgs("ShowPw")}}};this.editfields_alert_shared=function(t,e){LP.alert(LP.lpgs("This is a shared site. You are not permitted to view the password."),e)
z<t.logins.length;z++){var e=t.logins[z];e.fields=FZ(e.fields,I0,I2);e.otherfields=FZ(e.otherfields,I0,I2)}for(var z=0;z<t.otherlogins.length;z++){var e=t.otherlogins[z];e.fields=FZ(e.fields,I0,I2);e.otherfields=FZ(e.otherfields,I0,I2)}};this.editfields_delete_field=function(I4,t,I3,I1,z,I2){if(!LP.lpConfirmYesNo(LP.lpgs("Are you sure you would like to delete this field?"),t)){return
}if(I3!=0){var I0=G9[I3];if(I0==null){return}if(GX||I0.pwprotect){if(!LP.securityPrompt(t)){return}}}var e=G9[I3];if(e==null){HX("lpaccts missing in editfields_delete_field:"+I3,null);return}LP.deleteFieldLocal(e,I1,z,I2);LP.lpMakeRequest(LP.lp_base+"fields.php?delete=1&aid="+LP.en(I3)+"&urid="+LP.en(I1)+"&name="+LP.en(z)+"&value="+LP.en(I2),"",IO);
LP.createFieldsPane(I4,I4.getElementById("fields"),e);if(I4.editfields_opener){if(!I4.getElementById("fields").hasChildNodes()){t.close()}}};this.editfields_accept_click=function(I1,z){var t=I1.getElementById("fields");var e=G9[I1.editfields_id];if(e==null){HX("lpaccts missing in editfields accept:"+I1.editfields_id,null);
var I6=FK;var Jd=0;var I4=new Array();for(var Ji in I6){var Jl=AN(Jf);if(LP.compare_tlds(AN(Jf),AN(I6[Ji].url))){Jd++;var Jk=new Gm();Jk.id=Ji;if(Jc==I6[Ji].realm){Jk.realmmatch=true}else{Jk.realmmatch=false}var Jg=IR(I6[Ji].url);Jk.urlmatch=ED(I6[Ji].url,Jg)==Je?true:false;Jk.servermatch=Jg.host==Jb.host?true:false;
var z=Js.getElementById("LPOtherMenu");z.appendChild(Jp)}if(Jn==0){Js.getElementById("loginTextbox").value=I6[Ji].logins[0].unencryptedUsername;Js.getElementById("password1Textbox").value=BD(I6[Ji].logins[0].password)}if(Ja>1){continue}var I3=Ab();var I7=false;if(typeof(Im[Ji])!="undefined"&&Im[Ji]!=null){if(I3-Im[I4[Jn].id]<45){Im[Ji]=null;
}if(I4.length>2047){return""}var t=IR.options;var I0=t.parser[t.strictMode?"strict":"loose"].exec(I4),z={},I1=14;while(I1--){z[t.key[I1]]=I0[I1]||""}z[t.q.name]={};z[t.key[12]].replace(t.q.parser,function(I8,I7,I9){if(I7){z[t.q.name][I7]=I9}});if(I5!=null){z.query=I5;if(I2!=null){z.anchor=I2}}if(C1>500){for(var e in Gv){delete Gv[e];
var DC=new Array();var Ih=0;function ED(z,I1){if("about:blank"==z){return""}if(DC[z]!=null){return DC[z]}if(I1==null){I1=IR(z)}var t="";if(I1.port!=""){if(I1.port!=AT(I1.protocol)){t=":"+I1.port}}var I0;if(I1.host){I0=I1.host.toLowerCase()+t+I1.path}else{if(!z){return""}I0=z}if(I0.indexOf(";")!=-1){I0=I0.substring(0,I0.indexOf(";"))
}if(Ih>500){for(var e in DC){delete DC[e];break}Ih=0}DC[z]=I0;Ih++;return I0}function J(I0,e){if(typeof(If)=="undefined"||If==null){EC()}if(typeof(I0)!="string"){return""}if(I0==""&&typeof(e)=="string"&&e.indexOf("file://")==0){return"file:"}I0=I0.toLowerCase();I0=I0.replace(/\.$/,"");var I1=I0.split(".");
var Dg=new Array("securityanswer","promocode","maiden","comments","invoice","addrbookname","emailalert","combineddummy");var F8=new Array();F8.ssn1=F8.ssn2=F8.ssn3="ssn";F8.birthyear=F8.birthmonth=F8.birthday="birthdate";F8.address1=F8.address2=F8.address3="address";F8.phone1=F8.phone2=F8.phone3=F8.phone23="phone";
var JN=false;if(Jp!=""){try{if(Jq&&Jg!=null){if(JA.navigator.userAgent.indexOf("Opera")!=-1){I6.setStart(JF,0);I6.setEnd(JF,0);var Jn=I5.compareBoundaryPoints(Range.START_TO_START,I6);var Jj=I5.compareBoundaryPoints(Range.END_TO_END,I6);if(Jn>0||Jj<0){continue}}else{if(typeof(Jg.containsNode)=="function"){if(!Jg.containsNode(JF,true)){continue
var Jj=Jg.compareEndPoints("EndToEnd",I6);if(Jn>0||Jj<0){continue}}}}}}catch(JS){}var I4=0;var Ji=0;if(typeof(JF.size)!="undefined"){I4=parseInt(JF.size)}if(typeof(JF.maxLength)!="undefined"){Ji=parseInt(JF.maxLength)}if(I4<=0&&Ji<=0&&JF.style){var z=JF.style.width;if(z.match(/^\d+px$/)){z=parseInt(z.substring(0,z.length-2));
Jy=Jy.replace(/^\d+\s*/,"");Df(JP,Jy);break}if(JP.value!=Jk){E7(JP)}}catch(JT){HX("Failure with filling form field: "+JT+" ln: "+JT.lineNumber)}}function HM(e){var t="UNK";if((e.substring(0,2)=="34"||e.substring(0,2)=="37")&&e.length==15){t="AMEX"}else{if((e.substring(0,4)=="6011"||e.substring(0,2)=="65")&&e.length==16){t="DISC"
var I8=I9.getElementsByTagName("ok");if(!I8||I8.length==0){var Je=I9.getElementsByTagName("error");if(Je&&Je.length>0&&Je[0].hasAttribute("invalidsession")){DS();LP.lpClearCache(true,false,false);Au(LP.lp_base+"invalidsession.php",true);j("LoginError",false,true);return}if((Je&&Je.length>0&&Je[0].hasAttribute("silent")&&parseInt(Je[0].getAttribute("silent"))==1)){if(!LP.lpprefsHasUserValue("ffhasloggedin",false)){LP.lpprefsSetBoolPref("ffhasloggedin",true,false);
LP.flush_prefs();if(!K){LP.OpenCreateAccount()}}FJ(Jd,"noexistingsession");return}HX("login_check.php returned invalid response text="+z.responseText);FJ(Jd,"invalidresponse");return}CO=GS(CB(I8[0].getAttribute("pwdeckey")));EV=I8[0].getAttribute("lpusername");Ai=CB(EV);Eu=I8[0].getAttribute("uid");var Jh=(Jd=="websitelogin"||Jd=="webrootwebsitelogin"||Jd=="websiterefresh"||Jd=="websiterefreshrsa"||Jd=="frompipes")?true:false;
var I6=Ab()-Jf;if(I6>=Jn*60){DS();return}}var Jm;if(Hk==""){var Jc=II(EV);if(!Jc){FJ(Jd,"nokeyfileA");return}Jm=GS(BD(Jc,CO,true));var Jl=Cd(EV,Jm);if(!Jl){FJ(Jd,"nokeyfileB");return}}if(Jd=="httptest"){var I5=(I8[0].getAttribute("sesamepassword")!=null&&I8[0].getAttribute("sesamepassword")!="")?true:false;
var I4=(I8[0].getAttribute("yubikeyenabled")!=null&&I8[0].getAttribute("yubikeyenabled")=="1")?true:false;var Jg=(I8[0].getAttribute("multifactorenabled")!=null&&I8[0].getAttribute("multifactorenabled")!="")?true:false;var Jb=(I8[0].getAttribute("sesameotpok")!=null&&I8[0].getAttribute("sesameotpok")!="")?true:false;
var I3=(I8[0].getAttribute("yubikeyotpok")!=null&&I8[0].getAttribute("yubikeyotpok")!="")?true:false;var t=(I8[0].getAttribute("multifactorresponseok")!=null&&I8[0].getAttribute("multifactorresponseok")!="")?true:false;if(I5){if(Jb){}else{var I7=Ga(EV);if(I7==""){DS();j("LoginError",false,true);return
},I2);return false}}return true}function Bg(I7,t,Jb){try{if(!I7||I7.readyState!=4){return}if(I7.status!=200||I7.responseXML==null||I7.responseXML.documentElement==null){HX("Problem with login response. status="+I7.status+" text="+I7.responseText,null);if(typeof(t)=="function"){t()}return}var I2=I7.responseXML.documentElement;
var I8=I2.getElementsByTagName("ok");if(!I8||I8.length==0){var I6=I2.getElementsByTagName("error");var I1=I6.length==0?"":I7.responseText;if(I6&&I6.length>0&&I6[0].hasAttribute("invalidsession")){DS();LP.lpClearCache(true,false,false);Au(LP.lp_base+"invalidsession.php",true);j("LoginError",false,true);
var I0=IL("from");if(IL("label")){I9+="&trustlabel="+LP.en(IL("label"))}LP.lpMakeRequest(LP.lp_base+"login.php",I9,Bg,function(){Hz(I0)},I0);return}if(I1&&I1.indexOf("sesameotpfailed")>0){LP.lpClearCache(true,false,false);DS();j("LoginError",false,true);return}if(I1&&I1.indexOf("otprequired")>0){LP.lpClearCache(true,false,false);
var Jd=DQ(EV);if(Jd==""){DS();j("LoginError",false,true);return}var I9=EG("postdata")+"&otp="+encodeURIComponent(Jd);var I0=EG("from");if(EG("label")){I9+="&trustlabel="+LP.en(EG("label"))}LP.lpMakeRequest(LP.lp_base+"login.php",I9,Bg,function(){Hz(I0)},I0);return}if(I1&&I1.indexOf("otpfailed")>0){LP.lpClearCache(true,false,false);
var I5=I6[0].getAttribute("type");var Jc="";if(I5=="trueapi"){var I3="";if(C2("type")=="trueapi"){I3=C2("password_offline")}if(!I3||I3.length!=64){I3=CB(CB(F4(EV)+I5))}if(!I3||I3.length!=64){if(Fl()&&typeof(BA.trueapi_get_hash)=="function"){I3=BA.trueapi_get_hash(EV)}}Fk("password_offline",I3);Fk("type",I5);
var I0=(LP.lpprefsHasUserValue("singlefactortype",false)?LP.lpprefsGetCharPref("singlefactortype",false):"");if(I4[0].getAttribute("multifactor_singlefactor")=="1"){if(I0==""){if(C2("type")=="trueapi"){if(Fl()&&typeof(BA.trueapi_default_login_exists)=="function"){if(BA.trueapi_default_login_exists(EV)){LP.lpprefsSetCharPref("singlefactortype",C2("type"),false);
if(Gx!=I2&&I2!=""){Gx=I2}if(!z&&!Dw){AR("internal_logincheck_ack",{data0:Gx,data1:EV,data2:LP.GetIdentity()})}try{var I3=(I4[0].getAttribute("ignoreminor")=="0"?false:true);var t=I4[0].getAttribute("reqdversion");if(DF!=""&&t!=""&&EL(DF,t,I3)<0){LP.alert(LP.lpgs("A required update is available for LastPass. Please press OK to begin download and installation."));
}}if(t){I0+="\n action : appending to queue";Hq(I1);return}I0+="\n action : dropping request since it is not queueable";if(I3=="invalidresponse"||I3=="onerror"||I3=="exception"||I3=="objectcreation"){var z=I1.url;if(z.indexOf("loglogin.php")==-1&&z.indexOf("logformfill.php")==-1&&z.indexOf("error.php")==-1&&z.indexOf("poll_server.php")==-1&&z.indexOf("httptest.php")==-1&&z.indexOf("geticon.php")==-1&&z.indexOf("logout.php")==-1){j("ErrorSendingMsg")
}DS();j("ErrorSessionMsg",false,true);return}var I2=I5[0].getAttribute("oldretry");if(I2&&I2=="1"){if(I8){Al(Ja,true);return}HX("SK:ERROR : received oldretry=1 for non retry request!",null);return}}}var I9=false;if(I6.responseXML&&I6.responseXML.documentElement){I9=true}else{if(I6.responseText&&(I6.responseText=="latest"||I6.responseText=="nodata"||I6.responseText.indexOf("iconsversion")==0)){I9=true
}if(I0.url.indexOf("help.php")>=0){I9=true}if(I0.url.indexOf("create_account.php")>=0){I9=true}if(I0.url.indexOf("getaccts.php")>=0){if(I0.url.indexOf("mobile")>=0){I9=true}else{if(typeof(LP)!="undefined"){LP.lpClearCache(true);if(Cc==false){LP.lpGetAccounts();Cc=true}}HX("ERROR: Got invalid xml from getaccts")
}function IT(t){var I0=new RegExp("[?&]rid=([^&]+)");var e=I0.exec(t);if(!e||e.length!=2){HX("SK:lpgetretryrid - could not find rid in url",null);return null}var z=e[1];return z}function D6(e){if(CJ(e)){return false}var z=["add_never.php","change_pw.php","deliver_and_add.php","formfill.php","gm_deliver.php","save_gen_pw.php","set_autologin.php","set_never_autofill.php","show.php","fields.php"];
var t;for(t in z){if(e.indexOf(z[t])>=0){return true}}return false}function Hq(I4){var e=Hx();var I1=I4.rid;var I2=I4.ts;var I0=null;for(var z in e){if(e[z]["rid"]==I1){HX("SK:We tried to append a row with an idential rid value",null);return false}if(I0==null){var t=parseInt(e[z]["ts"]);if(I2<t){I0=z
}}}if(I0==null){e[e.length]=I4}else{var I3=[];for(var z in e){if(z==I0){I3[I3.length]=I4}I3[I3.length]=e[z]}e=I3}if(!Fb(e)){HX("SK:Could not write to retry file in lpretryinsert",null);return false}return true}var IY={exit:null,error:false,rid:null,status:null,sentms:null,donems:null,retryintervalms:0,initretryintervalms:0,responsewaitms:10000};
function Al(e,t){if(t){if(!BU(e)){HX("SK:lpremovefromretryfile failed for rid="+e,null);Fe("SK:lpremovefromretryfile failed for rid="+e+". Contents of retry file:");IY.exit=true;return}IY.status="done";IY.donems=(new Date()).getTime();G6(false)}else{IY.status="failed";IY.donems=(new Date()).getTime();
}}var e;var I0=false;var z=[];for(e=0;e<I1.length;++e){if(I1[e]["rid"]==t){I0=true}else{z[z.length]=I1[e]}}if(!I0){Fe("SK:lpremovefromretryfile : ERROR could not find rid="+t+". Contents of retry file:");return false}if(!Fb(z)){return false}if(z.length==0){LP.lpGetAccounts()}return true}function Fe(I1){var I0=Hx();
var z=I1;for(var t in I0){z+="\n["+t+"] :";for(var e in I0[t]){z+=" "+e+"->"+I0[t][e]}}}function Hx(e){if(Db==null||e){var I3=new Array();var I5=Fx();if(I5==null){return I3}else{if(I5==""){Db=I3;return I3}}var I4=BD(I5);if(I4==""||I4==null){HX("Failed to decrypt retry data",null);G3();return I3}var I0=AI(I4);
if(I0==null){HX("Failed to lpatob decrypted retry data (so perhaps decryption failed)",null);G3();return I3}var z=I0.indexOf(">LastPassRetry");if(I0.length<=2*14||I0.indexOf("LastPassRetry<")!=0||z!=(I0.length-14)){HX("Retry data format after decryption invalid: "+I0,null);G3();return I3}I0=I0.substring(14,z);
var t=e[2].toString();I0=I0.replace(I4+'="'+t+'"',"");I4=GR(I4);t=l(t);if(I4=="null"){t=null}else{if(I4=="false"){t=false}}I3[I4]=t}return I3}function Ha(z,I0){var e="<"+z;var t;for(t in I0){if(I0[t]==null){I0[t]="null"}if(typeof(I0[t])=="object"){I0[t]="null"}e+=" "+t+'="'+DR(I0[t].toString())+'"'}e+="/>";
var z,t,e,I8,I7,I6,I4,I9,I2=0,I1="";do{I8=I0.indexOf(I3.charAt(I2++));I7=I0.indexOf(I3.charAt(I2++));I6=I0.indexOf(I3.charAt(I2++));I4=I0.indexOf(I3.charAt(I2++));I9=I8<<18|I7<<12|I6<<6|I4;z=I9>>16&255;t=I9>>8&255;e=I9&255;if(I6==64){I1+=String.fromCharCode(z)}else{if(I4==64){I1+=String.fromCharCode(z,t)
var Jb=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125];
var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var Ja=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,0,10,11,12,13,14,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,11,12,13,14,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,];
}return Je};var I4=function(Je){if(typeof(reportError)=="function"){reportError(Je,null)}};return{KeyExpansion:function(Jj){var Ji,Jg;var Jf=new Array();var Jh;var Jk;if(!(Jj instanceof Array&&(Jj.length==16||Jj.length==24||Jj.length==32))){I4("KeyExpansion: key must be an array of length 16, 24, or 32 bytes")
}}for(Jg=0;Jg<4;Jg++){Je[Ji][Jg]=Je[Ji-Jh][Jg]^Jf[Jg]}}return Je},Cipher:function(Jh,Je){var Jl,Ji;var Jk;var Jj=new Array();var Jg=new Array();var Jf;if(!(Jh instanceof Array&&Jh.length==4*I3)){I4("Cipher: input must be an array of length "+(4*I3));return null}if(!(Je instanceof Array&&(Je.length==I3*11||Je.length==I3*13||Je.length==I3*15))){I4("Cipher: roundKeys must be an array of length "+(I3*11)+", "+(I3*13)+", or "+(I3*15));
},InvCipher:function(Jh,Je){var Jl,Ji;var Jk;var Jj=new Array();var Jg=new Array();var Jf;if(!(Jh instanceof Array&&Jh.length==4*I3)){I4("Cipher: input must be an array of length "+(4*I3));return null}if(!(Je instanceof Array&&(Je.length==I3*11||Je.length==I3*13||Je.length==I3*15))){I4("Cipher: roundKeys must be an array of length "+(I3*11)+", "+(I3*13)+", or "+(I3*15));
if(Jh.mode=="cbc"){Ji.mode=Jh.mode}if(Jh.b64==true){Ji.b64=Jh.b64}if(typeof Jh.pass=="string"){if(Jh.bits==128||Jh.bits==192){Jf=Jh.bits}Jj=Dl.StringToKeyIv(Jh.pass,Jf);for(Je=0;Je<Jj.key.length;Je++){Ji.key[Je]=Jj.key[Je]}for(Je=0;Je<Jj.iv.length;Je++){Ji.iv[Je]=Jj.iv[Je]}}else{if(!(Jh.key instanceof Array)||(Jh.key.length!=16&&Jh.key.length!=24&&Jh.key.length!=32)){I4("obj.key must be a byte array of length 16, 24, or 32");
return null}for(Je=0;Je<Jh.key.length;Je++){if(typeof Jh.key[Je]!="number"){I4("obj.key must be a byte array of length 16, 24, or 32");return null}Ji.key[Je]=Jh.key[Je]}if(Ji.mode=="cbc"){if(!(Jh.iv instanceof Array)||Jh.iv.length!=16){I4("obj.iv must be a byte array of length 16");return null}for(Je=0;
Je<Jh.iv.length;Je++){if(typeof Jh.iv[Je]!="number"){I4("obj.iv must be a byte array of length 16");return null}Ji.iv[Je]=Jh.iv[Je]}}}if(typeof Jh.data=="string"){Jg=Dl.StringToPaddedData(Jh.data);for(Je=0;Je<Jg.length;Je++){Ji.data[Je]=Jg[Je]}}else{if(!(Jh.data instanceof Array)||Jh.data.length%16){I4("obj.data must be a byte array with a multiple of 16 length ");
return null}for(Je=0;Je<Jh.data.length;Je++){if(typeof Jh.data[Je]!="number"){I4("obj.data must be a byte array with a multiple of 16 length ");return null}Ji.data[Je]=Jh.data[Je]}}Ji.round=Dl.KeyExpansion(Ji.key);return Ji},Encrypt:function(Jk){var Je=new Array();var Jh=new Array();var Jg;var Jj,Ji;
var Jf;var Jl;Jl=Dl.Prepare(Jk);if(Jl==null){return null}if(Jl.mode=="cbc"){Jg=Jl.iv}for(Ji=0;Ji<Jl.data.length/16;Ji++){for(Jj=0;Jj<16;Jj++){Jh[Jj]=Jl.data[Ji*16+Jj];if(Jl.mode=="cbc"){Jh[Jj]^=Jg[Jj]}}Jg=Dl.Cipher(Jh,Jl.round);for(Jj=0;Jj<16;Jj++){Je[Ji*16+Jj]=Jg[Jj]}}if(Jl.b64){Je=Dl.BytesToB64(Je)